Home Forums WoodMart support forum How to fix this lose the tracking code installation

How to fix this lose the tracking code installation

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #537033

    kevintsamo
    Participant

    The site automatically deletes tracking code installations such as GTM, Meta… when I update WP or the site theme. I’ve already tried using the child theme or creating a header and body function, but each time I update I lose the tracking code installation. How can I fix this?

    Thanks

    #537232

    Hello,

    Try to use the free plugin Insert Headers and Footers, have a look at the site https://wordpress.org/plugins/insert-headers-and-footers/

    Best Regards

    #537361

    kevintsamo
    Participant

    Hello
    I know the plugin except that I don’t want to add any more plugins for executions that I could set up myself.

    #537631
    #537649

    kevintsamo
    Participant

    I tell you I’d like to do it without using an additional plugin, so you share with me an article showing how to do it by adding a plugin!

    I know that plugins exist to facilitate code installation, but on sites with several essential plugins, I prefer to limit plugin installation. For example, by installing the code manually in the functions.php file of the child theme, the theme update shouldn’t delete the custom code added in this file! Except that this is the case for you. So it’s not possible to install plugins manually without any problems when updating the theme ?

    #537907

    Artem Temos
    Keymaster

    Hello,

    If you place your custom code into the file wp-content/themes/woodmart-child/functions.php it will not be removed after the theme update.

    Kind Regards

    #538071

    kevintsamo
    Participant

    When I install the code in the directory there it doesn’t work

    #538073

    Artem Temos
    Keymaster

    Make sure that you have activated the child theme in Appearance -> Themes.

    #538078

    kevintsamo
    Participant

    Okay problem solved

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

The topic ‘How to fix this lose the tracking code installation’ is closed to new replies.