Support » Theme: OnePress » Dropdown links not working in top menu on homepage

  • Resolved cmcsweeney


    Hi there,

    On my site, I have a dropdown under “A propos”/”About us” with a few anchor links that lead to different parts of the About page.

    This part of the menu works on every other page except for whatever page is designated as the homepage.

    Steps I’ve taken so far to test:

    – took a copy of the site locally.

    – checked issue in french and english.

    – tried to check dropdown links in all non-home pages and the links work.

    – went into Customize and set the Home to another page instead (“Partners”). The dropdown was now working fine on the banner page, but not on the new “Partners homepage”.

    – Added a non-anchor link to the dropdown menu (i.e. a direct page link to “Contact”), which worked.

    – Moved one of the anchor links into top level of menu, then tried to click it from homepage but the link wouldn’t work.

    – put a anchor link in the <div class="content"... part of homepage and it worked.

    With the above steps, I was thinking whatever page is set to home seems to cause an issue with anchor links in the top menu.

    After the previous listed steps:

    – I deactivated all plugins with Onepress enabled: no change
    – briefly switched to Twenty Nineteen theme: the links were working great

    Anyway, let me know if there’s some code/etc I need to add somewhere 🙂

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author FameThemes


    Hi @cmcsweeney

    I see you don’t use the Frontpage template to display all sections. So please open this file in the onepress theme:

    then remove this code:

    	// Navigation click to section.
    	jQuery('.home #site-navigation li a[href*="#"]').on("click", function(
    	) {
    		// if in mobile mod
    		if (jQuery(".onepress-menu").hasClass("onepress-menu-mobile")) {

    Hope it helps!

    Thanks for the quick reply, the solution worked great! 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dropdown links not working in top menu on homepage’ is closed to new replies.