Anchor Links dont work after opening Convertplus popup modals

Hi there,

Thanks for writing in.

What’s happening on my end is freezing once I open the popup. The console paused and I can’t navigate the whole page, and in Firefox and IE, it crashes. Perhaps you can minimize the use of plugins and features that uses a lot of javascript. Javascript uses deviced CPU since it runs on user device and if the device is slow then it multiplies (getting more slower) and the site becomes unusable.

Please try disabling some of them and test it again.

Thanks!

Hello there,
i have tried what you told me and disabled all plugins and activated the ones that necessary, and it doesnt work, the convertplus seems to be kind of bugged, after a modal is opened, it wont navigate to anchors, there is like a 10 seconds delay or even more.
from some reason after opening a modal with converplus it is screwing everything, even the smooth scroll is no longer active
what should i do

Hi there,

Would you mind providing a video recording? It became completely unusable once I open the modal. Perhaps you’re testing a different modal.

But yes, all of these are javascript related that keeps on freezing.

Thanks!

Adding secure note

Hi there,

Thank you for the video. It clearly shows that the conflict is between the ConvertPlus and the sticky menu plugin that you use. We do not support a conflict between 3rd party plugins as we do not know about the ins and outs of the 3rd party plugin that you used.

Thank you for your understanding.

Hi there,

i have disabled all both sticky menu plugins and the problem still remains, so its not a conflict between the convertplus and the sticky menu plugin

Hey @angelofgod,

The popup works but it looks like it’s freezing because it performs very slowly. There are two possible causes to this and 1 is third party plugin scripts like your Popup Maker plugin and 2 are your custom JS in your page and Global JS. I removed the one in your page and there’s an improvement in performance. Please see the secure note for your code. Please remove your script in the Global JS also as it’s also generating an error https://youtu.be/GXDUOflupWI. The performance of your page is still slow due to the fact that there’s a lot of scripts running in that page.

The issue is not coming from ConvertPlus.

Thanks.

1 Like

Hey i have deleted the Popup maker plugin and removed the global JS codes, and still it has a delay, any idea what i could do next inorder to fix that delay?

Hi,

This delay could be linked to your page performance, I’m pretty sure that reducing number of videos set in the background of sections on this page will improve the page performance and hopefully reduce this delay as well. You can give it a try on a test page without all these videos loaded.

Thanks.

1 Like

Hey, i did everything you told me to do and also removed all the background videoes from all sections and the bug still exsists. please help me fix that, is that a bug with covert plug or with my website?

Hello There,

Please have the custom JS code in the theme options custom JS section updated and use this:

jQuery(function($) {
    $('.scrol-top-advanced a').on('click', function(event) {
        event.preventDefault();
        setTimeout(function() {
            $('.scrol-top-advanced a').css('display', 'none');
        }, 1000);
    });
});

jQuery('.cp-default-close').on('click', function() {
    jQuery('video')[0].pause();
});

jQuery('.wp-side-menu a.wp-side-menu-item').attr('target', '_blank');

jQuery(function($) {
    $(document).on('click', '.cp-overlay-close', function() {
        $('.rev_slider video').each(function() {
            $(this).get(0).pause();
        });
    });
});

(function($){
  $(document).scroll(function() {
    var y = $(this).scrollTop();
    if (y > 665) {
      $('.wp-side-menu').fadeIn();
    } else {
      $('.wp-side-menu').fadeOut();
    }
  });
})(jQuery);






//=================================== SMOOTH SCROLLING EXTERNAL ANCHOR //      
(function($){
  $(document).on("ready", function () {
      var urlHash = window.location.href.split("#")[1];
      $('html,body').animate({
          scrollTop: $('.' + urlHash + ', #' + urlHash +',[name='+urlHash+']').first().offset().top -100
      }, 1000);
  });
 
})(jQuery);
 
 
// =================================== SMOOTH SCROLLING LOCAL ANCHOR //
(function($) {
        $('a[href*=#]:not([href=#])').click(function() {
            if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
              var target = $(this.hash);
              target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
              if (target.length) {
                $('html,body').animate({
                  scrollTop: target.offset().top -100
                }, 1000);
                return false;
              }
            }
        });
})(jQuery);

// =================================== SMOOTH SCROLLING LOCAL ANCHOR 

(function($){
  $(document).ready(function() { 
      var elem = $('#_' + window.location.hash.replace('#', ''));
      if(elem) {
           $.scrollTo(elem.left, elem.top);
      }
  });
})(jQuery);

We need to eliminate the JS error on the page first. Please let us know how it goes.

1 Like

Hello!

i have done this, it fixed few things as i mentioned in thread: https://theme.co/apex/forum/t/go-to-top-button-not-working/29471/20

but however it doesnt fixes the goto anchor after opening modal with converplug modal

Hi there,

It really seems the problem is caused because of very low performance and slow website. I tested the ConvertPlus on my installation and there is no problem like the one you have mentioned and the menu items work with no problem after the modal showed. So please consider that there is no bug in the ConvertPlus plugin and you need to search to find the problem on your environment.

Please test the case by adding a test page and testing the menu items and the modal there. If that worked there then it is certainly something related to your homepage which you need to follow up and find.

By the way the give Username and Password is not working anymore.

Finally, worths to mention that you should not add additional stuff to your homepage anymore, your website homepage is already a performance problem case and you will encounter many other issues with this approach that you have. Unfortunately we can not give support for such cases and you need to keep the usage of the scripts and plugins and features of the theme in one page in a reasonable amount.

Thank you for your understanding.

hi,

first of all the username and password are working i have tested them already.
second of all, why are you always declining my threads? (christopher)
how come the rest of your collegues do help me and you dont.
third of all could you record a video of how it works on your installation?
because i have tested it after i have removed all videoes and plugins and it still doesnt work i will be happy to fix it because i have removed popup maker plugin i am counting on convertplus.

please help

Hello There,

Thanks for updating in! The anchor that does not could be because of a conflict with your custom JS code. I can see that you have several JS codes. I would highly recommend that you temporarily remove them and place it back one after the the other to find out which of which is causing the issue.

Please let us know how it goes.

1 Like

Hey RueNel, the Custom JS code i have on my website is the custom JS code you gave me in this thread link https://theme.co/apex/forum/t/go-to-top-button-not-working/29471/19
i have removed it, and the problem still presist, i have backed it up on my computer in a txt file, so far i have no JS codes on my website, waiting for futher instructions to fix this issue please help

Hello There,

I did not give you the code. I just corrected the JS code because the syntax is invalid and it created an error on the page. I urge you to update it to make the code valid and error free. Please also keep in mind that an error free code does not mean that it works for its purpose.

For some reasons, all your issues could be coming from your convertplus modal popup. You must understand that we are trying our best to resolve your issue. The problem is that in your homepage alone, you have 13 sliders and 20 convertplus modal popups. This is also one of the reasons why the page is loading a little slower. If you could remove the slider and modal popups one by one, you should be able to figure out which of which is causing this issue.

Thank you for your understanding.

Hey
first of all the all sliders and convertplus you mentioned is not in my homepage, its about all my website and i am not going to remove them i worked 3 months to make them. its all my website is about.
in my homepage i have just 1 slider.
i have already tried to disable all plugins and i have removed all videoes backgounds, this issue still presist. how do i fix that? help please. what do i need to do?

Hello There,

This is the source code of your homepage.

It shows the 20 ConvertPlus modal popup code in your homepage and 13 of those has a Rev Slider inside it. I would highly recommend that if you are not using some of the popups, please go to ConvertPlus > Modal and “pause” the popup. Only the necessary one should be made live so that it will be loaded and displayed in the source code.

Please let us know how it goes.

1 Like

Hey!

wow you are absolutely right, i have paused all modals instead of the 3 in the #about section at the homepage. it has been fixed,
BUT, what should i do? i actualy need all modals to be live? is it because everytime i needed to create new modal i used the “Duplicate modal” feature? instead of clicking “Add New” or something?
cant it be like this when all modals are live?