Support

Artfull - css cat-item 'selected' in navbar (3 posts)

Languages

de | fr | es | 日本語

About This Topic

Tags

  1. rss phillwv

    junior member


    rss Posted 3 years ago
    #

    Hello Milo

    Artfull's hor. navbar shows pages 'selected' via style.css current_page_item, but categories in the navbar don't show as currently selected. This is very desirable for visitors and the 'inconsistency' a bit disconcerting.

    Cat-item I'm guessing is how it's done, but is not in style.css. Can you suggest syntax for enabling this?

    PS: An obligatory but heartfelt appreciation for sharing so generously your dazzling themes.

    Phil

  2. rss milo

    moderator


    rss Posted 3 years ago
    #

    Possible via altering or resembling this code, so it referres to the current category page:

    <?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>

    i.e. or is_category()

  3. rss phillwv

    junior member


    rss Posted 3 years ago
    #

    Thanks for help.

    And yikes! I'm only 30% geek, but will have a go.

    Phil

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.