Osclass forums

Support forums => Themes => Modern => Topic started by: nigelnix1 on August 30, 2014, 12:56:22 pm

Title: Adding Statcounter to Modern Theme
Post by: nigelnix1 on August 30, 2014, 12:56:22 pm
Hi Guys,

I would like to install the Statcounter code on my Modern theme but can't find the position (/body) as stated on Statcounter installation instructions. Where do I need to install the code?
Title: Re: Adding Statcounter to Modern Theme
Post by: dev101 on August 30, 2014, 03:20:36 pm
It is on every template page, what do you mean you cannot find it?

Keep in mind that stat counters are perfect backlink building tools for their owners... If you need real analytic tool for your website go for Google or Piwik.

Regards
Title: Re: Adding Statcounter to Modern Theme
Post by: nigelnix1 on August 31, 2014, 12:03:05 pm
I see only PHP and <div> on every template page of the Modern Theme...can you please point me to a template page where there is a </body> tag? I would really appreciate it.  ;)
Title: Re: Adding Statcounter to Modern Theme
Post by: dev101 on August 31, 2014, 12:12:16 pm
Are you in admin folder??
Title: Re: Adding Statcounter to Modern Theme
Post by: nigelnix1 on August 31, 2014, 07:30:04 pm
In "Modern Theme" admin folder there are 3 files... header.php, map_settings.php and settings.php , none of which have a </body> tag.
Title: Re: Adding Statcounter to Modern Theme
Post by: nigelnix1 on August 31, 2014, 08:51:43 pm
ok... I didn't find the </body> tag but I inserted the Statcounter code here:

/public_html/oc-content/themes/modern/footer.php

I downloaded this footer.php file with Filezilla and edited the file in Notepad++ and inserted the Statcounter code at line 41 of the footer.php where the footer div is located. Then uploaded it again.

It is working now, thank you for your responses.