Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • creativedesigns Friend
    #176508

    Please 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 Moderator
    #450343

    Hi 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>

    creativedesigns Friend
    #450347

    Fabulous! Thanks Tom!

    TomC Moderator
    #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 Friend
    #450384

    New question..
    you said
    <blockquote>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.</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 Moderator
    #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 😉 )

    creativedesigns Friend
    #450386

    Totally 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!
    🙂

Viewing 7 posts - 1 through 7 (of 7 total)

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