Home Forums WoodMart support forum About the header.php file

About the header.php file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #597355

    Ecommerce
    Participant

    We need to put Facebook and Google Pixel etc. verification codes in the header, but there is no header.php in the child theme. Please do not suggest any extra plugins for how to add these codes. I am sharing the methods I have read in your forums;

    Method 1: What happens if we copy the header.php file in the main theme to the child theme and add the relevant codes to the file I added to the child theme? Can we continue to receive updates in the woodmart theme without errors after this? Will there be any problems when I install theme patches and current versions? What should I pay attention to if I apply this method?

    Method 2: If I add pixel etc. verification codes to the functions.php file in the child theme, will the verification codes work?

    #597700

    Hung Pham
    Keymaster

    Hi Ecommerce,

    Thanks for reaching to us.

    First of all, I’m really sorry have taken long time to reply you due to the weekend.

    You can use method 1, but after each update, you will need to check whether there are any changes in the parent theme. Therefore, in this case, we recommend using the following code in functions.php file in the child theme:

    https://codebeautify.org/alleditor/y24661f18

    Regards,

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