Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1439554

    Hi there
    My client has an old version of the Enfold theme (using Version 4.8.6.2.), however when I try and update it for them it breaks a few things on the site. I can see they have a customised header.php in their child theme with google tag manager scripts in there. They also seem to be using a plugin called “Tracking Code Manager ” and have 2 tracking codes setup with that – so I’m not sure where that injects itself. Can you please help.

    Thank you
    Natasha

    #1439557

    Hey xfacta,

    What exactly is breaking, and where can we see the problem? You might want to copy the site to a staging area and update there first, so that we can see the actual problem. Also please include admin WordPress login details to the site in question.

    Best regards,
    Rikard

    #1439619

    Hey Rikard
    The entire footer section disappears – it is a page called Footer but once I update the theme it doesn’t show anymore.
    I just tried again to update it and the footer disappeared so tried to via FTP cpy the old Enfold theme and child theme back and now its completely crashed the site :-( So I have used a more recent theme file to get the site working again but it is missing the footer – if you could please have a look to try and resolve this – thank you.

    Cheers
    Natasha

    #1439633

    Hi,

    Thanks for the update. Are you overriding header.php or footer.php in your child theme? If so, then please try to replace those files with the parent theme files, then add your customisations back in after that.

    Best regards,
    Rikard

    #1439635

    hey Rikard

    Yes I can see they have the header.php in their child theme with google tag manager scripts in there. Where in the parent header.php do I need to add the Google Tag Manager info?

    Cheers
    Natasha

    #1439651

    Hi,

    If there’s only tracking code which is being added to header.php, then can delete that file and add it in function in functions.php instead:

    
    function xfacta_add_tracking_code(){
    ?>
    YOUR TRACKING CODE GOES HERE
    <?php
    }
    add_action('wp_head', 'xfacta_add_tracking_code');

    Best regards,
    Rikard

    #1439696

    Hey Rickard

    Sorry not sure I understand – so I need to copy the functions.php file in the parent theme to the child theme and add the code below? And if so where abouts in the file as there is a lot in there. Or am I making a new blank functions.php and adding the code?

    Cheers
    Natasha

    #1439697

    Hey Rikard I think I actually figured it out – seems like its working now. Just waiting on confirmation that the google tracking is working as it should :-)

    #1439717

    Hi,

    Thanks for update, we’ll keep this thread open for you.

    Best regards,
    Rikard

    #1439736

    I have the same problem. My footer page is not showing. Only just started with the website, so nothing has been added to the child theme.

    #1439743

    Hi danielle143,

    Please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.