Support » Themes and Templates » dynamic menu highlighting including images

  • i finally got the dynamic menu highlighting working, and as it is often the case; now i want more. i want an image to be shown behind/above the menu-link when a page is visited in addition to just highlighting the menu-item via current_page_item. i hope someone has tried this before and has a solution for poor coding me 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • bump

    A URL to the blog in question might help a little bit? We can’t see what you’re working on, and working’s kind of hard to help without anything to look at, ya know..? =P


    well, you’re right. but i’m working on it via localhost, there is no internet-version yet. but i will paste the relevant code here; header.php:

    <div id="supernav">
    <ul id="pages">
    if (is_home()) {$pg_li .=" current_page_item";}
    <li class="<?php echo $pg_li; ?>"><a href="<?php bloginfo('siteurl'); ?>" title="Blog">Blog</a></li>
    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    #supernav .current_page_item a{
    color: #c40;

    hope that helps a bit.

    any ideas?

    Maybe you try to give your current page class width, height and background-image:
    #supernav .current_page_item a{
    width:=xx; height=xx; background:transparent url(yourpic) top left no-repeat; color: #c40;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘dynamic menu highlighting including images’ is closed to new replies.