Tagged: x
-
AuthorPosts
-
February 13, 2017 at 1:03 pm #1369344
AnnParticipantHi 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
February 13, 2017 at 4:59 pm #1369644
JadeModeratorHi Ann,
You just have to remove the target=”_blank” in the code where you added the shortcode or the button.
Hope this helps.
February 13, 2017 at 11:49 pm #1370010
AnnParticipantOhh 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
February 14, 2017 at 3:01 am #1370162
FriechModeratorHi Ann,
Please add this on the Customizer > Custom JavaScript.
jQuery(document).ready(function($){ $('.page-id-27183 .cta-btn').removeAttr('target'); });Hope it helps, Cheers!
February 14, 2017 at 1:45 pm #1370900
AnnParticipantWonderful! Works great!
Thanks Friech!
February 14, 2017 at 8:42 pm #1371316
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1369344 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
