Viewing 5 replies - 1 through 5 (of 5 total)
  • Could you provide a link to your site. It helps us to see your problem more clearly

    Thread Starter pravingrane

    (@pravingrane)

    Here it is
    https://www.systemonix.com/

    Go to “Knowledge Base” -> “Blog”

    Thanks,
    Pravin

    Yeah. You can see what’s happening. The Home link is also being marked with the ‘current_page_item’ class.

    The is quite complex because in the situation where you are on a page reached via a sub-menu, you only want the current_page_parent to be ‘highlighted’. On the other hand, when you are on a page accessed directly from the main menu, you want the current_page_item to be highlighted.

    No immediate solution springs to my mind (although it might to someone else’s), but it might be worth looking in header.php (assuming it exists) to see what logic is being employed to determine which items are highlighted.

    Is there anything obvious-looking in header.php?

    Cheers

    PAE

    Thread Starter pravingrane

    (@pravingrane)

    Hi PAE,

    I am seeing following line in header.php script.

    <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a>">Home</a>

    I am not php pro. Is this line causing problem? If yes, then what changes I have to do ?

    Thanks
    Pravin

    Thread Starter pravingrane

    (@pravingrane)

    OK I got it solved like this. I changed line

    From this

    <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a>">Home</a>

    To this

    <li class="page_item <?php if ( is_home() ) { ?><?php } ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>

    Seems to working for me.

    Thank you for your support PAE

    Pravin..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme: iDream] Static Home Page’ is closed to new replies.