Analytics code - by Immograf - on WordPress WooCommerce support

This topic has 5 replies, 5 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp

  • Avatar: Immograf
    Immograf
    Participant
    January 27, 2016 at 11:54

    Hello,

    I would like to know where should I insert the analytics code. In the royal theme is very clear, but in the classico I couldn’t find the document in the editor to insert it.

    Best regards.

    4 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 27, 2016 at 13:03

    Hello,

    You need to edit the file wp-content/themes/classico/header.php and add the code right after the <body> tag.

    Best regards,
    Jack Richardson.

    Avatar: nathanphilpott
    nathanphilpott
    Participant
    January 28, 2016 at 00:53

    Hi Jack,

    I’m also struggling to find the appropriate place for the analytics code. The Classico theme header does not contain a <body> tag ? wherever i seem to place it either before or after the existing header.php code it seems to take the site off line ?

    Thanks

    Avatar: Catinho
    Catinho
    Participant
    January 28, 2016 at 08:21

    I think the place Jack meant was wp-content/themes/classico/framework/templates/header.php.

    I assume that’s the place where the header is being loaded and called from at the function in header.php at the root of theme folder.

    Now that I’m here Jack, is there any way to override those templates from the child theme? I wouldn’t want to go over it again every time you guys make an update to the theme.. speaking of which, when is the update coming out?

    Avatar: Eva
    Eva Kemp
    Support staff
    January 28, 2016 at 09:23

    Hello @nathanphilpott,

    The user @Catinho is right, you need edit the file wp-content/themes/classico/framework/templates/header.php.


    @Catinho
    , you need create child theme and create the same folder structure framework/templates and place the file header.php there.
    Our developers are working on the update. It should be released within several days.

    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.