Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1177755
    odaikan
    Participant

    Hi,

    I would like to insert following Javascript into a page, but I could not find the solution from the forum. Could you tell me what code should I insert to child theme’s functions.php file? By the way, I do not use Cornerstone, I use Visual Composer.

    <script src=”http//www.resunate.com/javascripts/resunate-plugin.js?type=job_board&button_color=pink&preferred_template=tepper_a&button_text=Need%20help%20creating%20a%20resume%3F&” type=”text/javascript”></script>

    Thank you!

    #1177780
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in and the very detailed information. To insert the JS code into the page, please insert this following code in your child theme’s functions.php file.

    function add_my_js_code() { ?>
      <script src="http//www.resunate.com/javascripts/resunate-plugin.js?type=job_board&button_color=pink&preferred_template=tepper_a&button_text=Need%20help%20creating%20a%20resume%3F&" type="text/javascript"></script>
    
    <?php }
    add_action('wp_footer', 'add_my_js_code');

    And if you only want this js code on a specific page, please use this instead:

    function add_my_js_code() { ?>
    
      <?ph if ( is_page('the-page-slug') ) : ?>
    
      <script src="http//www.resunate.com/javascripts/resunate-plugin.js?type=job_board&button_color=pink&preferred_template=tepper_a&button_text=Need%20help%20creating%20a%20resume%3F&" type="text/javascript"></script>
    
      <?php endif; ?>
    
    <?php }
    add_action('wp_footer', 'add_my_js_code');

    Please note the we have used a condition and you must supply the page slug is_page('the-page-slug'). To find out where to get the page slug, please check this out:

    Hope this helps.

    #1184161
    odaikan
    Participant

    Hi!

    I tried to put in the code you provided into my functions.php in child theme, but still the widget is not showing my page. It supposes to display top of the infographic.
    http://www.studentwebcafe.com/career/ats-resume/

    Is there a way to fix this issue?

    Thanks again!

    #1184286
    Friech
    Moderator

    Hi There,

    Please update the given code to this:

    function add_my_js_code() { ?>
    
      <?php if ( is_page('2528') ) : ?>
    
      <script src="http//www.resunate.com/javascripts/resunate-plugin.js?type=job_board&button_color=pink&preferred_template=tepper_a&button_text=Need%20help%20creating%20a%20resume%3F&" type="text/javascript"></script>
    
      <?php endif; ?>
    
    <?php }
    add_action('wp_footer', 'add_my_js_code');

    And would you mind linking us the page where you get this code? Is there any additional instruction on it?

    Thanks.

    #1187442
    odaikan
    Participant
    #1187514
    Paul R
    Moderator

    Hi,

    You can try adding your code in a raw content element.

    
      <script src="http//www.resunate.com/javascripts/resunate-plugin.js?type=job_board&button_color=pink&preferred_template=tepper_a&button_text=Need%20help%20creating%20a%20resume%3F&" type="text/javascript"></script>
    

    Please be careful of pretty quotes, copy and paste the code above exactly as it is.

    If that doesn’t help, kindly provide your wordpress admin login in private reply.

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