Support » Plugins » How to install a snippet to my site's tag

  • I used a plugin called optimizely to insert a snippet to my site’s <head> tag and , according to the plugin, the snippet did install. However it really did not.

    Can you give me some guidance as to how i can do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Assuming you are using the twentyeleven theme, the head section is in the file header.php.

    If, not consult with theme developer.

    If you have a code snippet to be added to twentyeleven, use a Child Theme so your customization is not lost on theme update.

    If you simply are unclear how to add code to an existing theme file, it is fairly easy, in this case:

    1. Copy the snippet that you desire to be included (from a well trusted source only).
    2. Admin Dashboard>Appearance>Editor>from right sidebar, click the file header.php.
    3. In this file find the closing head statement </head>
    4. Place the mouse cursor just before the < in step 3.
    5. Paste your code – again only trust code gathered from well trusted sources and make sure it is plain text only.
    6. Update file.
    7. Run site and look at the source code to see if this snippet is appearing on live site.

    Hi hdeutch,

    I believe you are referencing this plugin http://wordpress.org/extend/plugins/optimizely/ I’m going to tag this request so the developer will see it and hopefully offer more guidance.

    Could you also provide a link so we can check to see if the script is being added? It’s possible it only loads for users who are not logged in.

    Thread Starter hdeutch

    (@hdeutch)

    Thank you or your comments.

    When I thought about this further, I realized that the problem needs to be dealt with thru my theme.

    I am using Semiologic Theme, Reloaded 0.9.5 (not the Pro version). I checked the semiologic website and found the following statement:

    “The Script Manager plugin for WordPress allows you to easily add such additional sections of programming code known as scripts.”

    at <http://www.semiologic.com/software/script-manager/&gt;

    But I can’t locate “Script Manager Plugin For WordPress” to download.

    Can you tell me how to find it.

    It says I can insert the script using Script Manager Plugin For WordPress

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to install a snippet to my site's tag’ is closed to new replies.