It depend on what kind of <meta> tag you want to add to the <head> section of the theme. Most of the SEO related meta tags will be added automatically by installing and using a plugin like Yoast or Rank Math SEO for example.
I don't know what the "<meta name="data">" tag will do but if you would like to add this manually to the <head> section of the theme you have to edit the header.php template file.
Please be aware that any code changes you made directly to any template file from the theme will be overwritten when you're going to update the theme. It is recommend to install the child theme that allows you to do this so your coding changes won't be overwritten on updating the theme.
To install and use the Physio child theme it is the best to follow these steps:
1. Making an export file of your theme customizer changes
After you've installed and activated the Physio child theme you can re-import the customizer export file under Appearance -> Customize -> Export/Import so you don't loose your customizer changes.
2. Check your navigations
Because you just changes themes it could be possible that the navigation locations are re-ordered. This is a WordPress issue and you have to re-select the menu locations under Appearance -> Menu's at the bottom of the page at the checkboxes.
3. Making code changes to the <head> tag of the theme
Now that you're using the child theme you can copy/paste the "header.php" file from the Physio parent theme directly into the Physio child theme. Then you can edit this file and make your own changes.
Thanks again. Basically I'm trying to add the meta tag for facebook so the site can be verified. I am not using a child theme right now because I don't have much experience with them but my wife fusses at me regularly for not using them. I'll weigh the options and pick one. Thanks.
The only way will be to add a DNS txt record or edit the <head> section of the header.php template file. In that case it is really recommend to install and follow the 3 steps in my previous reply.
Basically the child theme is not a different theme than the parent theme. It only allows people to make code changes that won't be overwritten when updating the parent theme.
Thank you. Rather than bugging you I sat down and figured out where the child theme was hiding, Installed it and managed to migrate a copy of the Header.php. Added the code and it now works. Couldn't do it without you. So, next question. I want to add the google analytics snippet to the header. I see on another blog to add it to the header.php just after the body tag. Their easiest method was to use a plugin and go thru 30 steps. They don't recommend editing the header because a theme update will overwrite. But with the child theme that should be moot point.
Do you think editing the child theme's header file is best? Do I put it inside the body tag (between body_class(); and ?>>) or on the next line after the >>
These changes won't be overwritten when you're going to update the parent theme.
However, if you ever going to update the child theme make sure to backup all the files you've added manually so you can re-add them after updating. This is not needed for updating the parent theme only for updating the child theme.
I need to add a <meta name="data" to the <head> tag. How do I do that in this theme?
It depend on what kind of <meta> tag you want to add to the <head> section of the theme. Most of the SEO related meta tags will be added automatically by installing and using a plugin like Yoast or Rank Math SEO for example.
I don't know what the "<meta name="data">" tag will do but if you would like to add this manually to the <head> section of the theme you have to edit the header.php template file.
Please be aware that any code changes you made directly to any template file from the theme will be overwritten when you're going to update the theme. It is recommend to install the child theme that allows you to do this so your coding changes won't be overwritten on updating the theme.
To install and use the Physio child theme it is the best to follow these steps:
1. Making an export file of your theme customizer changes
Before activating the child theme I recommend to make an export file of your theme customizer settings first with this plugin: https://wordpress.org/plugins/customizer-export-import/
After you've installed and activated the Physio child theme you can re-import the customizer export file under Appearance -> Customize -> Export/Import so you don't loose your customizer changes.
2. Check your navigations
Because you just changes themes it could be possible that the navigation locations are re-ordered. This is a WordPress issue and you have to re-select the menu locations under Appearance -> Menu's at the bottom of the page at the checkboxes.
3. Making code changes to the <head> tag of the theme
Now that you're using the child theme you can copy/paste the "header.php" file from the Physio parent theme directly into the Physio child theme. Then you can edit this file and make your own changes.
Hope this helps!
Best regards,
Barry
QreativeThemes.com | WordPress Themes
Thanks again. Basically I'm trying to add the meta tag for facebook so the site can be verified. I am not using a child theme right now because I don't have much experience with them but my wife fusses at me regularly for not using them. I'll weigh the options and pick one. Thanks.
Thank you for clarifying.
The only way will be to add a DNS txt record or edit the <head> section of the header.php template file. In that case it is really recommend to install and follow the 3 steps in my previous reply.
Basically the child theme is not a different theme than the parent theme. It only allows people to make code changes that won't be overwritten when updating the parent theme.
If you need help with this just let me know.
Best regards,
Barry
QreativeThemes.com | WordPress Themes
Thank you. Rather than bugging you I sat down and figured out where the child theme was hiding, Installed it and managed to migrate a copy of the Header.php. Added the code and it now works. Couldn't do it without you. So, next question. I want to add the google analytics snippet to the header. I see on another blog to add it to the header.php just after the body tag. Their easiest method was to use a plugin and go thru 30 steps. They don't recommend editing the header because a theme update will overwrite. But with the child theme that should be moot point.
Do you think editing the child theme's header file is best? Do I put it inside the body tag (between body_class(); and ?>>) or on the next line after the >>
<body <?php body_class(); ?>>
You can add the Google Analytics code right before the closing head tag in the header.php file of the child theme:
/* Analytics code here */
</head>
https://kinsta.com/blog/google-analytics-wordpress/#2-manually-connect-google-analytics-and-wordpress-with-code
These changes won't be overwritten when you're going to update the parent theme.
However, if you ever going to update the child theme make sure to backup all the files you've added manually so you can re-add them after updating. This is not needed for updating the parent theme only for updating the child theme.
Best regards,
Barry
QreativeThemes.com | WordPress Themes
Thank you Barry. Your knowledge is worth way more than the maintenance fee. Thank you again
Dan
You're welcome Dan!
Let me know if there is anything else I can help with.
Best regards,
Barry
QreativeThemes.com | WordPress Themes