Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1330124
    Ravi
    Participant

    Hello dear X-ers!

    I need your help to integrate a javascript from my ticketing service:
    <script src=”https://userjllj.com/…&#8230;..” type=”text/javascript”></script>

    How can I put this into a section/row/column?
    Is it also possible to create a shortcode out of it?

    I am on the newest version and I am working with a wordpress network.

    #1330506
    Christopher
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Please add following code in child theme’s functions.php file :

    function script_for_ticketing_service() { 
     	<!--Add Your Javascript Below this line-->
    
    	<!--Do not modify anything below this line-->
    
    }
    add_action('wp_footer','script_for_ticketing_service');

    Hope it helps.

    #1340339
    Ravi
    Participant

    It doesn’t work. It stops the function of my whole site.

    #1340341
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1340348
    Ravi
    Participant

    Now everything is fine πŸ™‚

    #1340360
    Christopher
    Moderator

    Hi there,

    You don’t have child theme yet, where did you add the code?
    Please note that the code should be added in child theme’s functions.php file.

    Thanks.

    #1340413
    Ravi
    Participant

    I deleted everything I added and recopied the key and added it to the text element.
    I think it has something to do with an additional linebreak.
    Now it works.

    Thank you!

    #1340418
    Thai
    Moderator

    Glad it worked πŸ™‚

    If you need anything else please let us know.

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