Title: Custom Theme Problem
Last modified: August 18, 2016

---

# Custom Theme Problem

 *  Resolved [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/)
 * I have a custom theme at my website and it’s all great but for some reason if
   I click the category “Television Shows” or “Video Games” on the right it highlights“
   Gamercard Generator” and “About Me” at the top as if we/you are viewing that 
   page… but we/you are not!
 * I’m really stumped and I would like some help if possible :).
 * My Site: [http://www.darkgashx.com](http://www.darkgashx.com) .

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/custom-theme-problem-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-theme-problem-2/page/2/?output_format=md)

 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517684)
 * I forgot to add, the code I am using for the navigation bar is:
 *  `<li class="<?php if (is_home()) { ?>current_page_item<?php } else { ?>page_item
   <?php } ?>">
    /"> <?php _e('Home',TEMPLATE_DOMAIN); ?>
 *  <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
 * and on the sidebar for the categories:
 * `<?php wp_list_categories('sort_column=name&show_count=1&title_li=&hierarchical
   =1&feed=RSS&feed_image='.get_bloginfo('stylesheet_directory').'/images/icons/
   feed-iconsmall.gif'); ?>`
 * Hope that helps someone to help me.. if that makes sense (lol).
 *  [Mauricio](https://wordpress.org/support/users/infected-fx/)
 * (@infected-fx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517693)
 * I have the same problem =(
    somebody has the answer? please! 🙂
 * P.D. In this topic also they have the same problem
    [http://wordpress.org/support/topic/104401?replies=1](http://wordpress.org/support/topic/104401?replies=1)
 * Even in theme ‘default’ if I add this at the end of the file **style.css**
 * `#sidebar ul li.current-cat a {color:#FF0000;}
    #sidebar .pagenav ul li.current_page_item
   a {color:#FF0000;}
 * If the ID page is the same ID of the category is highlighted both
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517807)
 * I guess it’s a WP bug as no one has any answers mate.
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517878)
 * Can any WP coder or staff confirm this bug?
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517908)
 * Infected-FX any luck? This is bugging me now :(.
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517914)
 * This is not a WP *bug* as if there ever were such a thing. It is theme dependent.
   Do I know the answer? Sorry. No I don’t.
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517916)
 * Oh, just kind of strange as it only happens with categories and if they have 
   the same ID as a page.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517917)
 * It’s always been a bad idea to name cats same as pages or vice versa. Can break
   all sorts of things, as you seem to have discovered.
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517918)
 * No no, the same ID (i.e. 1, 2, 3 etc). You can’t change that.
 *  [sadish](https://wordpress.org/support/users/sadish/)
 * (@sadish)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517919)
 * I did check the WP code that gets executed when using wp_list_categories and 
   is not causing any issue with wp_list_pages.
    are you using wp_list_categories?
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517922)
 * Yes I am, here is my code:
 * <?php wp_list_categories(‘sort_column=name&show_count=1&title_li=&hierarchical
   =1&feed=RSS&feed_image=’.get_bloginfo(‘stylesheet_directory’).’/images/icons/
   feed-icon-10×10.gif’); ?>
 *  [sadish](https://wordpress.org/support/users/sadish/)
 * (@sadish)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517925)
 * This is really really strange and I dont know what causes the wp_list_pages to
   emit “class=current_page_item” while it is not the current page really.
 * This suggestion might sound stupid, but try it anyway.
    change your ul class=”
   menu” to ul id=”menu” and change your stylesheet to have #menu instead of .menu
 * also move the #menu styles to be above #sidebar styles.
 * see it if it helps.
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517926)
 * No luck for me, so I reverted it back. This is real weird, I don’t understand
   it :s. Does the WP team post on here?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517927)
 * Meaning the devs? No. You might want to hit [http://lists.automattic.com/](http://lists.automattic.com/),
   and check out/sign up for the hackers list.
 *  Thread Starter [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * (@darkgashx)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/#post-517932)
 * Oh, well I’m not sure on what to do. You can see what I mean here: [http://www.darkgashx.com](http://www.darkgashx.com).
   Click Television Shows on the right and you will see a nav option at the top 
   gets highlighted.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/custom-theme-problem-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-theme-problem-2/page/2/?output_format=md)

The topic ‘Custom Theme Problem’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 22 replies
 * 7 participants
 * Last reply from: [darkgashx](https://wordpress.org/support/users/darkgashx/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/custom-theme-problem-2/page/2/#post-517948)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
