inserting code into the head

  • 1
  • Question
  • Updated 6 years ago
Hello

Is there anyway I can add code into the head sections of my website?

Thanks
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like

Posted 6 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hi,

If you have Silver you can but not with other subscriptions.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
Hi, I am Silver, how can I do this?

Thanks
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Site>Site Settings>Tracking>Site Tracking Code>Header Code

It's in the Header Code section that you can add code but please do check it on a Test Site first. It can crash your site if incomplete or dodgy.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
Thankyou, would I use the code on a test site?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Yes. I would just create a simple test site using your selected style and you really only have to enter the code you wish to test out. maybe an image and a slap of text to see if content is harmed or modified.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
does the code added into the head section, reflect on all the pages?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
yes it does.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
In regards to the code I am adding, below is what I have been advised, despite this says I would need to add this to every page of my site, will I just need to add this head section, when using Yola?

For every single page on your web site that requires visitors to pay for membership before being able to view the page, you must insert the following two lines into the web page (between the tags is a good place Help ?.)
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
OK.

Do you know what this code does? Does it link to another site, does it put a statement or logo on your site?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Can you publish the code here?
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
I am adding membership services to my site, the code enables me to protect pages on the website to prevent people who have not registered from accessing the site.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
I do not think I can publish the code, as its linked to my site, and I think may damage it, if used on another site.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
You can use this trick to prevent activation of your code;

replace the word and with your code. This will display it but won't enable it
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
shall i use this trick here to see the code?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Yes. It's the method recommended for this forum. You can see some explanation on an empty Reply field by clicking on (some HTML allowed) next to the title of the box.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
hello is there any update on this?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
I would try it on a test site to see that it works. Then delete it from your test site and add it your true site if it's all OK.
Photo of plumpedlipssmokeyeyes

plumpedlipssmokeyeyes

  • 103 Posts
  • 1 Reply Like
Hello

I tried to do this on a test site, and when I published the changes the URL, navigated to my actually site?

Would you know why at all? Or us there anyway else, I can ensure this code will not crash my site?

Thanks
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hi Jane,

The testing that you have done suggests that the code is functional and doesn't bring the test site crashing down. I think that's probably your best chance and I guess there are no guarantees with stuff like this. The code is patent so I would be happy to use it on a site of mine.