WordPress.org

Ready to get started?Download WordPress

Forums

Blix theme & menu highlighting? (4 posts)

  1. snowcrash
    Member
    Posted 8 years ago #

    Hello

    When using the blix theme, the menu item on across the top highlights when you are on the relevant page.

    Though I notice when I navigate to an added subscribe.php page located at root, the HOME menu item is highlighted.

    Is it possible to prevent this from happening? That is, having nothing highlighted for the menu

    thanks

  2. Samuel B
    moderator
    Posted 8 years ago #

    I'm not familiar with Blix but you should be able to find and make the change in your theme's style.css.

  3. ladydelaluna
    Member
    Posted 8 years ago #

    Blix uses ALL SORTS of functions and such for highlighting... it's actually in the BX_functions.php file...

    Personally, I find that theme too much of a hassle for making edits and mods...

  4. Ryan Fitzer
    Member
    Posted 8 years ago #

    I've tried to do a lot of altering with Blix as well and I feel the same as ladydelaluna. It's a great theme but very convoluted behind the scenes. What your looking for happens in the header.php file in the theme folder. An example is here:

    else {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>n";
    }

    Altering can be very tricky but the easiest way to keep it from being highlighted is in the spring_flavour.css file. What you'll find there is this rule:

    #navigation .selected,
    #navigation a:hover
    {background-color:#1BA6B2}

    Just change the background color to #A3C159. But by doing this you will also loose the rollover (a:hover). To keep the rollover but not the highlighting, change this rule to look like this (basically just split it up):

    #navigation .selected {
    background-color:#A3C159;
    }
    #navigation a:hover {
    background-color:#1BA6B2;
    }

    Good luck.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags