StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Second line of subnav bar is not showing properly (http://www.studiopress.com/support/showthread.php?t=11777)

pakalrtb 07-28-2009 10:23 PM

Second line of subnav bar is not showing properly
 
The second line of category tabs DOES NOT show the background. It only appears when hovering on the link.

[attachment=0:19gprdfj]magazine.jpg[/attachment:19gprdfj]

Furthermore, is there a way to limit the number of category showing in the tabs, in order to have just 1 line of the most important categories !?!?
Thanks for yr help,
P/

CharlesClarkson 07-28-2009 10:58 PM

Re: Second line of subnav bar is not showing properly
 
Quote:

Originally Posted by pakalrtb
The second line of category tabs DOES NOT show the background. It only appears when hovering on the link.

It was not designed to wrap. It must remain on one line to function properly.


Quote:

Originally Posted by pakalrtb
Furthermore, is there a way to limit the number of category showing in the tabs, in order to have just 1 line of the most important categories !?!?

The categories are displayed with this line from header.php:
Code:

<?php wp_list_categories('orderby=name&title_li=&depth=4'); ?>
You can use the wp_list_categories Codex page to change the options to limit which categories it will be sent to the browser.


HTH,

pakalrtb 07-29-2009 12:10 AM

Re: Second line of subnav bar is not showing properly
 
Quote:

Originally Posted by CharlesClarkson
It was not designed to wrap. It must remain on one line to function properly.

Hmm, I am not sure about that; if it gives you the possibility of showing two rows of categories, it should properly handle the second one as well.

Quote:

Originally Posted by CharlesClarkson
The categories are displayed with this line from header.php:
Code:

<?php wp_list_categories('orderby=name&title_li=&depth=4'); ?>
You can use the wp_list_categories Codex page to change the options to limit which categories it will be sent to the browser.


HTH,

Thanks a lot, one last thing : Is it right to assume that any change made to the "wp_list_categories" file will NOT affect the Category widget on the sidebar.

P/

CharlesClarkson 07-29-2009 12:31 AM

Re: Second line of subnav bar is not showing properly
 
Quote:

Originally Posted by pakalrtb
Hmm, I am not sure about that; if it gives you the possibility of showing two rows of categories, it should properly handle the second one as well.

Additional menu rows have not been handled by StudioPress themes in the past or in the current selection. It has always been left to the designer to add more menu rows or to encourage the client not to have so many items on the menu.

If you want more space without the expense of a StudioPress customization, remove the search box. It can go in the sidebar and will leave room to widen the navbar.


Quote:

Originally Posted by CharlesClarkson
Is it right to assume that any change made to the "wp_list_categories" file will NOT affect the Category widget on the sidebar.

They each use their own instances of the function. You are not foolish to ask. WordPress uses "filters" and "actions" to increase interoperability between the core files, themes and plugins. Filters and Actions can be used to change the return values of all calls to wp_list_categories().


HTH,

pakalrtb 07-29-2009 06:33 PM

Re: Second line of subnav bar is not showing properly
 
Thanks man, I used your suggestion and modified the line this way :
Code:

<?php wp_list_categories('orderby=name&include=3,5,6,8,10,11,12,14,16,19&title_li=&depth=4'); ?>
Now the subnav it's ONLY showing the categories that I selected. The subnav is one row only, and I still show ALL the categories in the Sidebar.
Thanks for the support,
P/


All times are GMT -5. The time now is 07:40 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.