WordPress.org

Ready to get started?Download WordPress

Forums

Responsive
[resolved] Tinynav doesn't keep category-items (6 posts)

  1. Pascal Piller
    Member
    Posted 1 year ago #

    I use the Responsive Theme with Tinynav. Tinynav works fine. Only when a category(menu-item) is choosen the navigation jumps back to first menu-item (which is not a category). I would like to keep the category-item shown in the Tinynav, when Category is open. What can I do?

    http://wordpress.org/extend/themes/responsive/

  2. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Hi,

    Sorry, but there's not much we can do to change that, there's no support for current categories, only current page items. Theme by itself would not "highlight" categories either way :)

    Thanks,
    Emil

  3. Pascal Piller
    Member
    Posted 1 year ago #

    Ok, thank you anyway.
    Pascal

  4. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    No problem :)

    Emil

  5. Pascal Piller
    Member
    Posted 1 year ago #

    Hello Emil

    I found a part-solution of my tinyNav problem. I changed jQuery settings in "js/responsive-plugins.js" in line 21. I simply changed the active class "current_page_item" into "current-menu-item". Now tinyNav keeps my category items and subcategory items .

    Unfortunatly I can't define more than one active class. I would add "current-post-ancestor", when no "current-menu-item" class exists ...

    Pascal

  6. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Hi,

    current_page_item should work both for standard and custom menus because it is included along the size of current-menu-item. Here is an example:

    menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-1950

    However, when category is used in custom menus current_page_item would not apply:

    menu-item menu-item-type-taxonomy menu-item-object-category current-menu-item menu-item-713

    You can add your custom JS via Child Theme, modify what you changed above and also add a second JS for categories I believe.

    Thanks,
    Emil

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags