Gnet Solutions



Too Many Catagories for Subnav bar

Description: Subnav bar is breaking the template because the catagories are spilling over to the next row.
I don't want all the catagores in the subnav bar anyway.
How do I take them out while still keeping the catagories?

Resolution:

You can just exclude the categories that you don't want to show up by opening header.php and change this:
<?php wp_list_categories('sort_column=name&title_li=&depth=2'); ?>

To this:

<?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude=8,9,10,11'); ?>

Where the numbers after exclude are the categories you want to exclude.


Related Articles

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "Too Many Catagories for Subnav bar"

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.

   Name:
   Email:
* Comment:
* Enter the code below:

 

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue