WordPress.org

Ready to get started?Download WordPress

Forums

keep home highlighted while listing a category (7 posts)

  1. Nitzki
    Member
    Posted 1 year ago #

    Hi,

    I have a menu registered via if ( function_exists('register_sidebar') for my top-Navigation. For the active links I’m using the class

    li.current_page_item a {
       border-bottom: 1px solid #212121;
    	padding-bottom: 1px;
    }

    It works for my blog-page and the other static pages. But when I’m listing a category on my Blog, the active state is switching back to normal. How can I keep the Button highlighted?

  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Can we have a link to the relevant page, or Pastebin.com of that page's HTML and CSS code?

  3. Nitzki
    Member
    Posted 1 year ago #

    For the menu in the Header I’m using this:

    http://pastebin.com/BxFA60bc

    in my functions.php I’m using this:

    http://pastebin.com/dhYYAPd6

    And my category.php looks like this:

    http://pastebin.com/DMxtHzx5

    (or do you want me to embed it in this form?)

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Please just the HTML and CSS

  5. Nitzki
    Member
    Posted 1 year ago #

  6. Nitzki
    Member
    Posted 1 year ago #

    In the Header its just this:

    <nav>
        <?php if ( !function_exists('dynamic_sidebar') || dynamic_sidebar('Menu') ) : ?>
    
            <?php endif; ?>
      </nav>
  7. Nitzki
    Member
    Posted 1 year ago #

    Do you need anything else?

Topic Closed

This topic has been closed to new replies.

About this Topic