This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Home page PageBuilder widget triggering current-menu-item

Resolved 3 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

I used the class “current-menu-item” to style the navigation button differently for the current page.

I used PageBuilder on the home page, with a Post Loop widget to display recent posts from a custom post type.

Now both the home button AND the navigation button for this custom post type are being given the class “current-menu-item” and show the different styling. And idea how I can stop the custom post loop from taking on “current-menu-item” on the home page? (Without affecting the menu behavior on the custom post type’s archive page.)

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 11 years, 9 months ago

    Hi. Perhaps try temporarily removing your custom CSS and rather using the current page item options under Appearance > Customize > Menu as I don’t think those will clash with the Post Loop widget. For those options to work in the Customizer you must have a custom menu saved under Appearance > Menus and that menu must be assigned to the primary menu position.

  2. jsj9625 11 years, 9 months ago

    Thank you, I’ll look into that as well. I ended up using jQuery removeClass to target the button on only the home page.

  3. Andrew Misplon Staff 11 years, 9 months ago

    Super, glad you found a solution.

    Another fix would have been to limit your CSS to #masthead .site-navigation.

    All the best.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread