• Hi, I’m new to word press but I have an issue with the info section on the top of the site not staying high lighted when clicked. Here is my web site: https://www.joshengelking.com
    So the buttons need to stay high-light white when clicked. “home” “music” about “Josh” “contact” and “link”.

    Here is the code that needs something extra. If anyone can help me out I’ll love ya forever.

    <div id=”menu”>

      <li class=”page_item active<?php if (is_home()) echo ‘ current_page_item’; ?>”>/”>Home
      <?php wp_list_pages(‘title_li=’ ); ?>

    </div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • hey josh, you need to add a class in your css for ‘page_item active’

    e.g.

    .page_item active {color:white;background:black}

    the style for .current_page_item is missing in your theme:

    try and add this to style.css:

    li.current_page_item a {background:#ffffff; color: #110404!important;}

    this still leaves the .active class on the home link which stays even if on other pages, and the fact that in your above quoted code, is_home() does not seem to be working, and should maybe replaced by is_front_page() instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header/info problems’ is closed to new replies.