• Resolved codestylist

    (@codestylist)


    Hi @twentig.
    I’m facing a problem with Twenty Twenty theme and Twentig and hope you can help.
    On my site I added an archive page of a custom post type as well as the blog page to my main menu.
    If I click on the menu item for the archive page this item as well as the blog page menu item get the class current-menu-item and both are underlined at the same time.
    If I click the blog page link only the blog page item is getting the class current-menu-item and is underlined.
    For testing I used only Twenty Twenty theme and Twentig plugin 1.0.3. Other plugins were disabled.
    Can you reproduce this on your site?
    Do you have an idea how to fix this?
    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Twentig

    (@twentig)

    Hi @codestylist,

    We’ve released an update (1.0.4) that includes CSS changes for active menu links, but it shouldn’t fix your issue.

    We can’t replicate the issue on our side. When we click on the menu item for the Custom Post Type archive page, it gets the current-menu-item class. But the blog page item doesn’t get the current-menu-item class, it gets the current_page_parent class.

    If you only use Twenty Twenty theme and Twentig plugin, which Custom Post Type archive page are you displaying?

    If possible, could you please share the URL of your website?

    Thanks.

    Thread Starter codestylist

    (@codestylist)

    It is fixed with version 1.0.4. Great job!
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Class current-menu-item for blog and archive page at the same time’ is closed to new replies.