Let me rephrase....
I want to add the applicable script in the file named html_ header.php. I can get the the script from google, I'm just not sure on which line to put it.
Make sense?
Anyone?
If you're talking about the script itself, not the button code, it doesn't go in html_header.php. It goes in tpl_main_page.php right before the closing </body> tag.
This is what I'm talking about:
<!-- Place this tag where you want the +1 button to render -->
<g: plusone annotation="inline"></g: plusone>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
Those are two different parts. The second part is the script and goes in tpl_main_page.php right before the closing </body> tag. The first part is the button code and goes where you would like it positioned on the page. If you want it at the top it would go in tpl_header.php, if you want it at the bottom it would go in tpl_footer.php.
Okay, but I'm still a little unclear as to exactly where in the tpl_header.php or tpl_footer.php the script should go.
Line 1?
line 15?
line 4276362489?
I'm so confused!!!!!!![]()
The script does NOT go in either of those files, the button code does.
It would go where you'd like it to appear on the page. In other words, the position relative to the other elements on the page. Look at what's on your page, find the code in the file that generates the element and place the button code in the same vicinity. For example, I have the button at the bottom so it is placed like this in my tpl_footer.php:
<div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <br />
<!--eof- site copyright display -->
<br />
<glusone></g
lusone>
FAWESOME!!
Finally got it to work.
Going to have to paly with the placement though, but at least it works!
RescoCCC...THANKS!!!!![]()
Excellent. Glad you got it working.