How to Close Pop-Ups after Clicking a Link for Same Page Menu Anchors - Elementor Wordpress Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2023
  • Elementor Off-Canvas Pop-Ups are great - even when you have a Single Page Site with Menu Anchors for jumping to alternate sections/containers.
    A big problem is how the Pop-Up doesn't close if it's a same page link. So you have to click to close it. Not good :(
    I'll show you how to close that Pop-up when you click the link.
    Book your 1-2-1 Consultation: websquadron.co.uk/socials
    Link to the HTML code: element.how/elementor-close-p...
    How to Close Pop-Ups after Clicking a Link for Same Page Menu Anchors - Elementor Wordpress Tutorial
    We love to create - share - respond - and deliver.
    🧐 Learn with our Mastery Modules: websquadron.co.uk/web-design-...
    🔗 All of our Important Links: websquadron.co.uk/socials/
    😃 Join our Facebook Group: / 3309523509284305
    😃 Get Code Snippets Pro: r.freemius.com/10565/3304295/
    😃 Get Elementor Pro: be.elementor.com/visit/?bta=2...
    😃 Boost your TH-cam Analysis: www.tubebuddy.com/websquadron
    👕 Get our Merchandise: websquadron.co.uk/merchandise
    🥹 Support us: paypal.me/Websquadron
    Hire us to work on your Website!
    💌 info@websquadron.co.uk
    👩‍💻 Visit websquadron.co.uk
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 81

  • @wmz.design
    @wmz.design 21 วันที่ผ่านมา +2

    I LOVE YOU!!! been struggling for hours with this, and the forums don't have anything, but your channel does!!!

  • @Dimizdomu
    @Dimizdomu ปีที่แล้ว +4

    Man! U are the best thing ever happened to people like me who struggle with this kind of problems. I even feel ridiculous just writing it in the search bar sometime stuff like this, thinking there is no way there is a tutorial for it, and there always you with the solution. Bless you man, you are increnible!

  • @caiowordpress
    @caiowordpress วันที่ผ่านมา +1

    holy shit bro u save me, thanks! hugs from Brazil

  • @simonekoudijs2891
    @simonekoudijs2891 ปีที่แล้ว +1

    Super!!! I struggled with a pop-up menu on mobile. After selecting a link towards a menu anker and closing the pop-up the page went straight back to the top. Now the menu closes and you stay where you want to be. Thanks a lot Imran!

  • @lukaszandreabilski5022
    @lukaszandreabilski5022 9 หลายเดือนก่อน +1

    After hours of struggling with mobile popup menu, your small piece of code solved the problem. Thanks!

  • @Camilacalderon123
    @Camilacalderon123 8 หลายเดือนก่อน +2

    THANK YOU! You are a lifesaver. I was struggling with that problem and had to deliver the website to my client. Again thank you very much!

  • @frredderricci
    @frredderricci ปีที่แล้ว

    incredible! thank u very much for your videos! always choosing very specific and important things for junior coders

  • @Faradaymusic
    @Faradaymusic 9 หลายเดือนก่อน

    You have seriously saved me so many headaches. THANK YOU!

  • @AmIRightYesNo
    @AmIRightYesNo ปีที่แล้ว

    always on point... the best problem-solving channel!

  • @m.m.9705
    @m.m.9705 8 หลายเดือนก่อน +1

    Thanks a lot. You saved me a lot of stress. Incredible ! THANK YOU. One Pager and the Pop up not closed just went down on the site. Now is everything fixed. Nice Videos and Content :) LIVE SAVER

  • @antopichou
    @antopichou 7 หลายเดือนก่อน +1

    I don't usually comment on this kind of video but I really see you often when i'm looking for solutions so thanks you for your work

    • @websquadron
      @websquadron  7 หลายเดือนก่อน

      Glad to help

  • @thorfinn_no
    @thorfinn_no 7 หลายเดือนก่อน

    THANK YOU!! Saved me a lot of time, "Elementor frustration" and saved the day. I'm having a beer for you now! 🍺

  • @digitalripu
    @digitalripu ปีที่แล้ว

    Thank-you so much it's very helpful ❤❤

  • @montythebrave8986
    @montythebrave8986 ปีที่แล้ว

    Cheers mate, worked a treat

  • @CRodri-lq1ui
    @CRodri-lq1ui 4 หลายเดือนก่อน +1

    I love your channel. Thank you.

  • @JonSmithchannel
    @JonSmithchannel 9 หลายเดือนก่อน

    I had this issue today for the first time. I knew where to come to find a fix 👍🏻👍🏻😎😎

  • @user-ru4wh5le3k
    @user-ru4wh5le3k ปีที่แล้ว

    Perfect! Thanks a lot!

  • @amrfarrouh
    @amrfarrouh ปีที่แล้ว

    Very useful point , Thank you Bro

  • @vittaldivakar661
    @vittaldivakar661 2 หลายเดือนก่อน +1

    Thank you for the code! 💯

  • @something4792
    @something4792 9 หลายเดือนก่อน

    This is very helpfull. Thanks for sharing this trick.

  • @abdulazizapon3431
    @abdulazizapon3431 หลายเดือนก่อน

    very helpful thanks man

  • @nicolasgramnea1324
    @nicolasgramnea1324 9 หลายเดือนก่อน

    thank you! great one.

  • @danrh14
    @danrh14 หลายเดือนก่อน +1

    Thanks!!

  • @MikeGavilan
    @MikeGavilan ปีที่แล้ว

    Uff hermano, me super salvaste. Gracias muchas gracias

  • @worksofhasan
    @worksofhasan 2 หลายเดือนก่อน +1

    You are awesome!

  • @smt7270
    @smt7270 ปีที่แล้ว

    Your tutorial very nice

  • @AlexBartokMusic
    @AlexBartokMusic ปีที่แล้ว +1

    Thank you so much

  • @jhennikarimeronav9347
    @jhennikarimeronav9347 ปีที่แล้ว

    Thanks is awesome!

  • @LUFECH17
    @LUFECH17 5 หลายเดือนก่อน

    Work perfect. Amazing!

    • @websquadron
      @websquadron  5 หลายเดือนก่อน

      Thanks a lot!

  • @dorottyadecsi4476
    @dorottyadecsi4476 9 หลายเดือนก่อน

    Thank you!

  • @lowensteinmarketing485
    @lowensteinmarketing485 ปีที่แล้ว

    Thank you so mutch!

  • @daniel.affonso
    @daniel.affonso ปีที่แล้ว

    USEFUL Tks!!!!! 😍

  • @Art-01
    @Art-01 ปีที่แล้ว

    Thank u for sharing

  • @ulumzulvaton3502
    @ulumzulvaton3502 2 หลายเดือนก่อน +1

    thanks very much

  • @viniciusmilani
    @viniciusmilani 6 หลายเดือนก่อน +1

    You saved my ass! Hours of work to reach here. Thank you a lot

  • @Hugo-ob7hu
    @Hugo-ob7hu หลายเดือนก่อน +1

    thanks 🙏

  • @user-ms3rf5ml6q
    @user-ms3rf5ml6q ปีที่แล้ว

    THANK YOU

  • @hassonhamo4118
    @hassonhamo4118 10 หลายเดือนก่อน

    thank youuuuuuuuu!

  • @amilcarmorillo894
    @amilcarmorillo894 8 หลายเดือนก่อน

    thank you so much

  • @apancreations
    @apancreations ปีที่แล้ว

    great thanks

  • @soylasnoches
    @soylasnoches 21 วันที่ผ่านมา +1

    hero!

  • @bkotler752
    @bkotler752 3 หลายเดือนก่อน

    I have a sliding menu on mobile. When I click a menu item, it jumps to that page fine. Before your code, my problem was the menu still overlaid the previous page when pushing the back button and had to be closed manually. After implementing the code, when pushing the back button, I see the menu briefly before it closes automatically. Is there a way to make the menu completely disappear, so when I hit the back button, I don't see it all?

  • @DanZL1
    @DanZL1 ปีที่แล้ว +1

    Great video Imran, but how do we add the HTML if the nav menu is created from Appearance > Menu?

    • @BartAndrzejewski
      @BartAndrzejewski ปีที่แล้ว +1

      Yeah, waiting for this one also @Web Squadron :)

  • @avanimalhotra2153
    @avanimalhotra2153 ปีที่แล้ว

    Hey that's awesome. Quick question - if I want the exit animation to still work what can I do ? The minute I add a link the exit animation stops working . Any solution ?😊

    • @websquadron
      @websquadron  ปีที่แล้ว

      Would depend on how it's built.

  • @UncleBillyProduction
    @UncleBillyProduction 10 หลายเดือนก่อน

    I just commented in your video on how to get anchor tags to show the desired location without having a sticky header block them. In there I commented about something like this. But this is talking about "popups" and I'm looking for how to close the mobile menu (hamburger) when an anchor tag item is clicked and its on the same page. ( I just wanted you to know I searched but unsuccessfully). Thanks

    • @UncleBillyProduction
      @UncleBillyProduction 10 หลายเดือนก่อน

      I was wondering if there is a similar solution for closing the mobile menu when an anchor tag menu selection is selected and its on the same page?

  • @ValteiresLima
    @ValteiresLima 9 หลายเดือนก่อน +1

    Brazil tankyou

  • @hdhaciadubai347
    @hdhaciadubai347 ปีที่แล้ว

    when i uses it with the mobile at the moment i press the back button it cloth the popup and the post , so how i can ajuste it with the phone to be when i press the button back to just cloth the popup without clothing the main post

    • @websquadron
      @websquadron  ปีที่แล้ว

      It shouldn’t do that and may depend on your build

  • @arturo5050
    @arturo5050 ปีที่แล้ว

    I have a vertical mega menu that only opens/close when I click the < or x repectible, but no when I click the name of the menu(exam: Colections ) how can I put a code so when I click the name (exam: Colections) it open and close too.
    Thanks

    • @websquadron
      @websquadron  ปีที่แล้ว

      Hmmmm that’ll need some custom JS.
      Have your tried asking the developers that created the vertical menu?

    • @arturo5050
      @arturo5050 ปีที่แล้ว

      @@websquadron amm yes it was from a theme it was already created actually, but dons have that option

  • @Art-01
    @Art-01 ปีที่แล้ว +1

    This works only for Elementor pro popup, how can i use it for Jetpopup from Croco? I try your code, but not working for me. Hope u can help. Thank u

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      Not sure with that one

  • @jeanelizedenys
    @jeanelizedenys ปีที่แล้ว +1

    I have a .5sec close fade-out animation on my menu. Using this code, it seems to interfere with it and I get this weird effect of the menu starting to disappear, the website scrolling behind to get to the anchor and then the menu closes fully. It takes longer to scroll than .5 secs so there is def something janky. How can I make the menu close before it scrolls down?

    • @websquadron
      @websquadron  ปีที่แล้ว

      Difficult to advise without seeing your menu.

    • @jeanelizedenys
      @jeanelizedenys ปีที่แล้ว

      @@websquadron hmm i guess I’ll have to wait then, the site is still in progress so I can share it.

  • @arturo5050
    @arturo5050 ปีที่แล้ว

    Which hosting do you use? It save elementor super fast

  • @mtnpfi
    @mtnpfi 4 หลายเดือนก่อน

    Hi Imran, can I use this code for the mega menu too? It stays open because I use anchor links in it.... : /

    • @websquadron
      @websquadron  4 หลายเดือนก่อน

      Not sure. Have a go.

  • @mohsinabbas1528
    @mohsinabbas1528 11 หลายเดือนก่อน

    how to add this code in nav tab or mobile menu

  • @dominik.szewior
    @dominik.szewior ปีที่แล้ว

    T H A N K S!

  • @Ellomai18422
    @Ellomai18422 ปีที่แล้ว

    I linked text to a pop-up and it works,BUT THE PROBLEM is that when i click the pop up, it goes back to the top of the page of the linked text. Is there a related video or some sort of code that i need for it to stay after I activate the pop up? PLEASE HELP

    • @websquadron
      @websquadron  ปีที่แล้ว

      I'll have a think

    • @dougsviana
      @dougsviana 10 หลายเดือนก่อน

      @@websquadron I face this problem: When we open a popup, even without taking any action, it takes us to the top of the page. Regardless of user action or simply closing the popup: We are at the top...

    • @websquadron
      @websquadron  10 หลายเดือนก่อน

      @dougsviana you shouldn’t get that issue but it may depend on the build

  • @dynamikeloveyou
    @dynamikeloveyou 3 หลายเดือนก่อน +1

    fucking great! thanks bud!

  • @theoneandonly7213
    @theoneandonly7213 11 หลายเดือนก่อน

    You should mention your solution only applies for Elementor Pro users

    • @websquadron
      @websquadron  11 หลายเดือนก่อน

      It’s in my descriptions and about page and everyone knows that I use EL Pro but I will bear that in mind

    • @julius8439
      @julius8439 10 หลายเดือนก่อน

      @@websquadron awesome video. could you possibly help me write this code für divi? Im trying my best but its just not working

  • @simonebarbisan4285
    @simonebarbisan4285 ปีที่แล้ว

    mio padre

  • @lukaszandreabilski5022
    @lukaszandreabilski5022 8 หลายเดือนก่อน

    ok I was hurry with 'your small piece of code solved the problem' ;)
    So - it works perfect on mobile popup menu but it has broken other popups on my site - i had a popup with clickable container which opened another popup - in the end there were two popups opened at the same time. After implementing this code, when i click the container, it opens new popup but closes the opened one.
    I tried to modify html code by adding ID to define which specific popup should be closed elementorProFrontend.modules.popup.closePopup( {id:14425}, event) but it still doesnt work and can't have two popups opened at the same time.
    Do you have any idea what to do?

  • @chubbec
    @chubbec 2 หลายเดือนก่อน +3

    jQuery(function($){
    $(document).on('click','.elementor-location-popup a', function(event){
    elementorProFrontend.modules.popup.closePopup( {},event);
    });
    });

  • @xlgablx
    @xlgablx 8 หลายเดือนก่อน

    I need to close the current popup and open another one when I click a button but it's been impossible. I hate Wordpress.

    • @websquadron
      @websquadron  8 หลายเดือนก่อน

      In the PopUp settings you can set the Multiple to be off.

    • @xlgablx
      @xlgablx 8 หลายเดือนก่อน

      @@websquadron I did that but it will never close. Spend multiple hours on that. Final solution: merge both popups on a single one. Thanks anyways, it's weird to see this kind of behaviours on such a big tool like Elementor