This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tagged: , ,

Adding script to section

  • Creator
    Topic
  • #11091
    stardigit
    Participant

    Hi, I’d like to use Pingdom’s “Real User Monitoring” feature on my Alyeska site, which requires pasting a script between the and tags sitewide.

    Is there a straightforward way to do this?

    Thanks!
    Dave

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #11094
    Jason Bobich
    Keymaster

    Hello Dave,

    Where are you supposed to include this in your site?

    #11096
    stardigit
    Participant

    Sorry, the angle brackets cut out the tags. I’m supposed to include the script between the

    <head>

    and

    </head>

    tags.

    #11097
    Jason Bobich
    Keymaster

    So, you can just hook a function to WordPress’s standard wp_head action from your Child theme’s functions.php something like this:

    function my_pingdom() {
    	?>
    	your code from pingdom ...
    	<?php
    }
    add_action( 'wp_head', 'my_pingdom' );

    http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    #11117
    stardigit
    Participant

    Awesome, that worked thank you!

    For future versions of Aleskya, would be great to have a text entry box in the theme options where stuff like this, Google Analytics code, etc. could be pasted 🙂

    #11119
    Jason Bobich
    Keymaster

    There always was and it has been actually removed with Alyeska 3. This isn’t really “theme territory” and is sort of frowned upon in the community.

    There are free plugins on wordpress.org that’ll give you similar functionality, too, where you can copy/paste scripts in through the WP admin to get them inserted.

    #11120
    stardigit
    Participant

    Ah got it, thanks! Interesting that this isn’t “theme territory,” I’d think otherwise.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.