-
AuthorPosts
-
March 29, 2015 at 6:55 pm #420055
Hi!
I need to add this script between <head> </head> -tags, but how do I do it? It is some kind of chat add on for websites.
The script is:
<!– giosg tag –>
<script>
(function(w, t, f) {
var s=’script’,o=’_giosg’,h=’https://service.giosg.com’,e,n;e=t.createElement(s);e.async=1;e.src=h+’/live/’;
w[o]=w[o]||function(){(w[o]._e=w[o]._e||[]).push(arguments)};w[o]._c=f;w[o]._h=h;n=t.getElementsByTagName(s)[0];n.parentNode.insertBefore(e,n);
})(window,document,1385);
</script>
<!– giosg tag –>Thanks!
-
This topic was modified 10 years, 7 months ago by
Designton.
March 30, 2015 at 6:04 pm #420665Hi Designton!
You can go to Enfold theme options and add the code to Google Analytics field
Cheers!
YigitJune 12, 2015 at 5:32 am #458161Hi, is there a way to place a script between the <head></head> tags on a specific page? I need to add some code to a thank you page which is where the visitor gets redirected to after filling in a form.
June 12, 2015 at 7:37 am #458211Hey!
To do that, you would need to use a conditional if stament, which would allow you to show things, only on one page, into your header.php.
https://codex.wordpress.org/Function_Reference/is_page
Here is the link to the codex, you just need to add a CSS style, only for one page.
Example of code:
<?php if ( is_page( 'web-content' ) ) { ?> <style> </style> <?php } else { ?>Regards,
BasilisOctober 6, 2015 at 5:03 pm #514591The Google Analytics field places the script at the bottom of the body tag. Is there a similar way to get it placed at the bottom of the </head> tag?
October 6, 2015 at 5:43 pm #514637I’m utilizing the solution here: https://kriesi.at/support/topic/code-before-tag-head-in-child-theme/
October 7, 2015 at 7:22 am #514947 -
This topic was modified 10 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
