Help with wordpress and script please ...

by zoro
6 replies
With my HTML website I have inserted a special lead gen script into the <head> and this works just fine.
Recently I started a new site using wordpress but I am not sure where I should insert the special lead gen script and how to go about it.?

Hoping someone can help.
#script #wordpress
  • Profile picture of the author theimdude
    Ho zoro,

    The path to the file is;

    wp-content/themes/your-themes-used/header.php

    This will only work for the theme you selected to use
    Signature
    Do you want 30 back-links in my PRIVATE BLOG network for ONLY $20 ???
    [LIMITED ACCESS + FREE ARTICLE INCLUDED OR YOUR OWN]

    CLICK HERE NOW
    {{ DiscussionBoard.errors[1109528].message }}
  • Profile picture of the author Quentin
    Usually the script you add in the head with html can be added by going to the theme editor and then add the same script into the header script you find in that page.

    Quentin
    {{ DiscussionBoard.errors[1109534].message }}
    • Profile picture of the author theimdude
      Originally Posted by Quentin View Post

      Usually the script you add in the head with html can be added by going to the theme editor and then add the same script into the header script you find in that page.

      Quentin
      Yes you can do that but you have to make the directory writable which I am avoiding completely now as that way WP can be hacked. I only use ftp now.
      Signature
      Do you want 30 back-links in my PRIVATE BLOG network for ONLY $20 ???
      [LIMITED ACCESS + FREE ARTICLE INCLUDED OR YOUR OWN]

      CLICK HERE NOW
      {{ DiscussionBoard.errors[1109555].message }}
  • Profile picture of the author reidcardwell
    I concur with theimdude: it's better to avoid making files writeable if you can avoid it. You should be able to edit the necessary theme files you uploaded from your computer and just upload them again with ftp.
    {{ DiscussionBoard.errors[1109654].message }}
  • Profile picture of the author zoro
    Sorry, but I can't get this javascript to work in wordpress? I have inserted the script into the Header PHP <head> through the WP editor (I am using WP 2.84) and it just don't work?

    What am I doing wrong?
    {{ DiscussionBoard.errors[1111264].message }}
  • Profile picture of the author Matt Wahle
    It's impossible for us to say, without seeing the site and the code.

    MW
    {{ DiscussionBoard.errors[1111872].message }}

Trending Topics