-
AuthorPosts
-
April 9, 2024 at 6:18 am #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
NatashaApril 9, 2024 at 8:59 am #1439557Hey 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,
RikardApril 10, 2024 at 3:32 am #1439619Hey 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
NatashaApril 10, 2024 at 8:47 am #1439633Hi,
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,
RikardApril 10, 2024 at 8:54 am #1439635hey 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
NatashaApril 10, 2024 at 3:54 pm #1439651Hi,
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,
RikardApril 11, 2024 at 1:23 am #1439696Hey 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
NatashaApril 11, 2024 at 1:58 am #1439697Hey 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 :-)
April 11, 2024 at 10:01 am #1439717April 11, 2024 at 11:58 am #1439736I 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.
April 11, 2024 at 2:22 pm #1439743Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.