WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Highlight current events page on main menu (11 posts)

  1. Daniele
    Member
    Posted 1 year ago #

    Hi,

    i have an events page on main menu named 'News'. If i visit this page, it is highlighted correctly, but if i open an event link on this parent page, this last turn of the highlight on main menu...

    Some one can help me?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    this might be a theme issue; you might need additional wp hooks/filters to handle custom post type;

  3. Daniele
    Member
    Posted 1 year ago #

    Can you exaplain me with an detailed example?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    a link may help us understand the specific issue more, but chances are you need to hire someone to add this functionality into your theme or maybe even add some PHP to get this to work.

    Because events aren't actual pages or children of your news page, your menu has no way of knowing it is a submenu item of 'news' and highlighting it.

  5. Daniele
    Member
    Posted 1 year ago #

    Unfortunally my site is in local....

    What do u suggest to do?

  6. Daniele
    Member
    Posted 1 year ago #

    I solved with a php hack.

  7. agelonwl
    Member
    Posted 1 year ago #

    glad it's working now; however, you might want to share some snippet on how you make it worked for the benefit of the community.

    thanks

  8. Daniele
    Member
    Posted 1 year ago #

    Sure....

    i check if in the url there is a substring like 'news' (parent events page) ... if yes, i take the ss-nav-menu-item-x where x is the number of menu item and force it with css to become highlighted... obviously it not consider different events of different categories...

  9. emeraldryan
    Member
    Posted 1 year ago #

    With the twentytwelve theme I can see no menu highlighting when I click on an event category that has been added to the main menu.

    The problem seems to be that the class current-menu-item is not added to the list elements for category events in the main menus.

  10. hristo5322
    Member
    Posted 1 year ago #

    I have exactly the same problem like emeraldryan ... I've read all the internet ( :D ) and no solution worked for me. Oh, you great programmers, pleace solve this issue for us both. Make our life easyer! Pleace!

  11. hristo5322
    Member
    Posted 1 year ago #

    RESOLVED:
    The problem was in the plugins settings ...
    To fix this problem go to:
    Events(left Admin Sidebar) -> Settings -> Pages -> Event Categories
    And set "Override with Formats?" to NO

    Thats it ... I hope this information to be useful for others, and save them a lot of time, which they coud use for a walk, drinking beer and whatever they want. ;) Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.