-
AuthorPosts
-
creativedesigns Friend
creativedesigns
- Join date:
- April 2012
- Posts:
- 100
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 18
April 26, 2012 at 4:40 pm #176508Please help 🙂
I am needing to put some meta data into my template for google webmasters. Problem is that I can’t find any file within the template that has the <head> and <body> tags in them..
Ideas anyone?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 26, 2012 at 4:43 pm #450343Hi Wendye:
Here is the simplest way to add Google or any other analytics/tracking code to this template although there are plugins available on the JED that will aslo do the job if you do not like playing with the code.
Copy the file plugins>system>jat3>jat3>base-themes>default>page>default.php
into
templates>ja_your-template-name>page>default.php and insert your analytics code just before the </head> tag as per below.
<head> <?php //gen head base on theme info $this->showBlock (‘head’); ?> <?php $blocks = T3Common::node_children($this->getBlocksXML (‘head’), ‘block’); foreach ($blocks as $block) : $this->showBlock ($block); endforeach; ?> <?php echo $this->showBlock (‘css’) ?>************YOUR ANALYTICS CODE HERE*************</head>
1 user says Thank You to TomC for this useful post
creativedesigns Friendcreativedesigns
- Join date:
- April 2012
- Posts:
- 100
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 18
April 26, 2012 at 4:50 pm #450347Fabulous! Thanks Tom!
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 26, 2012 at 4:53 pm #450350<em>@creativedesigns 316266 wrote:</em><blockquote>Fabulous! Thanks Tom!</blockquote>
As always, glad to help. 🙂By the way, if you find that there is not a “page” folder within your directory … just create it and put the file in there and you will be good to go.
creativedesigns Friendcreativedesigns
- Join date:
- April 2012
- Posts:
- 100
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 18
April 26, 2012 at 7:17 pm #450384New question..
you said
<blockquote>Copy the file plugins>system>jat3>jat3>base-themes>default>page>default.phpinto
templates>ja_your-template-name>page>default.php and insert your analytics code just before the </head> tag as per below.</blockquote>
The problem i’m facing is that in the JA_Travel template, when I get to templates>ja_your-template-name>page>default.php
There is no PAGE folder in the template folder.
Am I just supposed to create the folder called PAGE and slot the default.php file in there? Or am I missing something?TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 26, 2012 at 7:18 pm #450385<em>@creativedesigns 316312 wrote:</em><blockquote>
There is no PAGE folder in the template folder.
Am I just supposed to create the folder called PAGE and slot the default.php file in there? Or am I missing something?</blockquote>YES . . . Just create it and put the file in there and you will be good to go.(by the way, I mentioned this in Post #4 above
😉 )1 user says Thank You to TomC for this useful post
creativedesigns Friendcreativedesigns
- Join date:
- April 2012
- Posts:
- 100
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 18
April 26, 2012 at 7:20 pm #450386Totally missed that post! Don’t know how! So sorry about asking you to repeat yourself..
Really do appreciate all the crazy awesome work you do on these boards helping ignorant people like myself 🙂Have a superb and amazing day further!
🙂 -
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by creativedesigns 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum