Status
Not open for further replies.

Exclusive5

Active Member
490
2010
4
0
Hello on my Word Press site none of the categories are showing up in the header they they show up in the side bar but not the header any ideas on fixing?
 
12 comments
I think its a feature of the theme you are using. The theme I use only shows categories on the header and not the sidebar. Yours may be just the opposite. Most blogs show their categories only on the sidebar and the pages on the header. So I am not surprised.

You can however edit the header.php file to make the categories show on the header if you so desire. But you need to know php for that.
 
I would check to make sure your theme supports the menus, if not you need to check out the header.php/header-default

you got a link to the theme?
 
its not menus its categories and like I said before on the demo there were categories in the header and the pages wont show up in the header either
 
thats the pages thats displayed in header and not categories..... so i suppose ur theme does not support categories display in header..
 
thats the pages thats displayed in header and not categories..... so i suppose ur theme does not support categories display in header..

yep its not supported by default


something like this could be added tho

find something similar to the following in header.php

Code:
<ul class="sf-menu">
                <li <?php if (is_home()) { echo 'class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>/" title="Home">Home</a></li>
                <li><a href="#" title="Categories">Categories</a>
                    <ul>
                        <?php wp_list_categories('title_li='); ?>
                    </ul>
                </li>
                <?php wp_list_pages('title_li='); ?>
                <li><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe">Subscribe</a></li>
				<?php wp_register('<li>','</li>'); ?>
            </ul>

add something like this instead
Code:
<ul id="nav">
                                <li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
        						<?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?>
        					</ul>
                            <?php
                        }
                    ?>
 
Status
Not open for further replies.
Back
Top