Support » Plugin: Full Screen Menu for Elementor » Anchor links with id not working

  • Resolved katudd

    (@katudd)


    I am using the Full Screen Menu for Elementor-plugin for a one page site. I set up the links in my menu with unique id:s for the section I want to link to. It worked fine a month ago, butt suddenly the links refuses to work. I have the same links in the footer, and there they work just fine.
    I checked all the links, tried to change them, did rollback on both the plugin and the pro version of Elementor but nothing have worked.
    Is this plugin not for one page sites?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author solitweb

    (@solitweb)

    You links are working. The problem is that the menu doesn’t close. You need Javascript for that.

    OK, thanks for your answer. Not the answer I was hoping for. Javascript really is beyond my knowledge…

    Plugin Author solitweb

    (@solitweb)

    This code snipped will close the menu when an anchor tag is clicked.

    
    ( function() {
      jQuery( document ).ready( function() {
        jQuery( ".fsmfe-wrapper" ).find( "a" ).click( function() {
          jQuery( this ).closest( ".fsmfe-wrapper" ).find( ".menu-toggle" ).prop( "checked", false );
        } );
      } );
    }() );
    

    Use some plugin like Simple Custom CSS and JS to add the snipped to your sites footer.

    I found your answer now – three months later. Works lika a charm! Thank you so much for helping me out!
    /Katrin

    Plugin Author solitweb

    (@solitweb)

    Glad you found the answer!

    serdjo1990

    (@serdjo1990)

    So long JS here, don`t like it)))
    1. Go to WP consloe -> appearence -> editor;
    2. Finde here footer.php;
    3. Before </body> paste this:

    <script type="text/javascript">
    const menucontent = document.querySelector(".content-type-menu");
    const nomenuhere = document.querySelector(".menu-toggle");
    
    menucontent.addEventListener("click", () => {nomenuhere.checked = false;});
    </script>

    I have encountered a problem with this guys. What if you have a menu with sub-menus? Since its find “a”, any link will close but is there a way to make an exception for links that expand before going to the anchor?

    • This reply was modified 10 months, 1 week ago by ronanqg.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Anchor links with id not working’ is closed to new replies.