Add php function in theme

Posted in: Newspaper
Post count: 3

I’m wanting to add a php function that adds tags to the <head> of my site, I added a function in the header.php file of the theme but it didn’t work. I would like to know how and where I can add this function.

Post count: 27744

Hello,

If the code needs to be set between head tags, this can be put in our theme in Theme Panel -> Analytics/Js Codes -> https://prnt.sc/10jk7fq

Thank you!

Post count: 3

Hello, for my case I have to add the code in php because I need to use functions of the theme that only have that language. I would like to know which of the files (.php) of the theme is what builds the head of the homepage.

Post count: 27744

Hello,

Our theme has 3 header files, on in theme, one in tagDiv Composer (wp-content/plugins/td-composer/legacy/Newspaper/header.php) and one in tagDiv Standard Pack (wp-content/plugins/td-standard-pack/Newspaper/header.php), now if the standard pack is enable and you do not use a cloud template then you’ll use the file from standard pack, if this plugin is disable or you use a cloud header from tagDiv Cloud Library then it will be used the file from composer, if both of these are disable will be display the one from theme (wp-content/themes/Newspaper/header.php).
I think this is the file that I think you need to edit wp-content/plugins/td-composer/legacy/Newspaper/header.php

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.