Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1369344
    Ann
    Participant

    Hi Guys,

    How can I make the “Register Now” link in the right top corner on this page https://moveu.com/webinars/ to not open in a new tab? I just want it to jump down to the registration section on the same page.

    This is what I added under customizer:

    jQuery(document).ready(function($){
    $(‘.page-id-27183 .cta-btn’).attr(‘href’,’https://moveu.com/webinars#register’).html(‘Register Now’);
    });

    Thanks for your help!

    Ann

    #1369644
    Jade
    Moderator

    Hi Ann,

    You just have to remove the target=”_blank” in the code where you added the shortcode or the button.

    Hope this helps.

    #1370010
    Ann
    Participant

    Ohh the button is added from my function file, and I want it to open in new window from all other places. Is it possible to have just this page to not open in new tab?

    Thanks,

    Ann

    #1370162
    Friech
    Moderator

    Hi Ann,

    Please add this on the Customizer > Custom JavaScript.

    jQuery(document).ready(function($){
    $('.page-id-27183 .cta-btn').removeAttr('target');
    });

    Hope it helps, Cheers!

    #1370900
    Ann
    Participant

    Wonderful! Works great!

    Thanks Friech!

    #1371316
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1369344 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>