Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1394607

    Hi, I am trying to use add a javascript embed code to cornerstone. It is not working so I turned off all plugins and added the code using the regular text editor but it is still not working.

    I created a fresh install with a different theme to test if it was the x-theme causing the issue. It worked on the new site so it is x-theme.

    This is the site it is working on. (you will need to enter the username: demo and password: testsite because it’s a transferable install on WPengine)

    http://blankslatesite.wpengine.com/?page_id=4

    This is the x-theme page (still using the regular text editor): http://onlinecoursesacademy.com/test-button/

    This is the code:

    <link href=”//app.webinarjam.net/assets/css/register_button.css” rel=”stylesheet”><div style=”margin:auto;width:300px;”><div class=”embedded-joinwebinar-button”><button type=”button” class=”btn btn-default css3button” title=”regpopbox_17536_51517dd6be”><span>Register now</span></button></div></div><script src=”//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js” language=”javascript” type=”text/javascript”></script><script src=”//app.webinarjam.net/assets/js/porthole.min.js” language=”javascript” type=”text/javascript” async></script><script src=”//app.webinarjam.net/register.evergreen.extra.js” language=”javascript” type=”text/javascript” async></script>

    Can you help?

    #1394917
    Christian
    Moderator

    Hey there,

    Your embed code adds jQuery so it throws an error because jQuery is already added in WordPress. It will not work in page builders or any other theme and plugin that use jQuery also. It works in the default theme as that is only a simple theme or does not use JS. Remove the jQuery line in your code:

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js" language="javascript" type="text/javascript"></script>

    Tested it on my test site and it works.

    Thanks.

    #1397058

    Thank you!

    #1397316
    Darshana
    Moderator

    Glad we were able to help 🙂

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