Alright you wordpress pros, jump in here for a minute

3 replies
Wordpress aint my thing but I recently purchased a website built on wordpress and Im needing some help with something...

On my nav menu when I select - home, videos or contact (all links to 'wordpress pages') the menu background is set to a different color... however this doesnt happen for the me when I select the Basic, Benefits or Foods tab (all links to 'wordpress categories')

Before I jump in and try find the source of my problem I just wanted to ask if anyone can point me towards a good starting point to fix this, settings/files I need to be looking in etc

site ref paleodietstrategy.info (note: the nameservers are still in propogation so you may not be able to access the site)
#alright #jump #minute #pros #wordpress
  • Profile picture of the author FredBliss
    Hi Web,

    Yeah, the problem here found by using a DOM inspector like Firebug for Firefox or Chrome developer tools is that there are inconsistent CSS selectors between items *with* and *without* that background colors.

    #page-nav #nav li.current_page_item - this selector has the background dark red color set, and all those with the darker background colors use it.

    to fix this, add the following line to that selector

    #page-nav #nav li.current_menu_item

    your final css def will look like this:

    #page-nav #nav li.current_page_item, #page-nav #nav li.current_menu_item {
    background-color: #292320;
    }

    the file this definition is located in is the salsa.css file (/themes/headlines_enhanced_v2_2/styles/salsa.css)

    and the line is #12.

    HTH!
    {{ DiscussionBoard.errors[6532238].message }}
  • Profile picture of the author webpeon
    Hey Fred,

    Thanks for the reply.. didnt work for me.. I have a bit of free time tomorrow so I'll jump in there and take a closer look
    Signature
    Web 2 Mobile
    The Future of The Web
    {{ DiscussionBoard.errors[6533009].message }}
    • Profile picture of the author FredBliss
      Originally Posted by webpeon View Post

      Hey Fred,

      Thanks for the reply.. didnt work for me.. I have a bit of free time tomorrow so I'll jump in there and take a closer look
      Hi web,

      Sorry to hear that, Definitely keep fiddling with a DOM inspector, so you can tweak the CSS rules as you go along. At least one thing is now established - it has to do with inconsistent classes between those items. Some are taxonomic categories, others are pages as you mention. Just from a general best practice standpoint it complicates things when there are inconsistencies in a single DOM node like that, but that's a problem with wordpress itself in this case. Best of luck, let me know how it turns out.
      {{ DiscussionBoard.errors[6533754].message }}

Trending Topics