Child theme – include a string to a PHP-file
-
Hi, I’m first time trying to configure a child theme for my blog, and everything works fine for CSS, but I’m in doubt about customizing PHP-files.
So, I have a
header.php
file in my Parent’ them.
What I want is to add a couple of meta tags like:meta name="yandex-verification" content="blablacom" />
What’s the correct way to achieve it?
For my CSS I just added a new
style.css
in the child’ theme directory and replaced blocks.E.g. in Parent I have a
style.css
with the:.widget-area .widget a { color: #757575; text-decoration:none; font-size: 98%; }
And in the child:
.widget-area .widget a { color: #0B91EA; text-decoration:none; font-size: 98%; }
Just replaced the
color: #0B91EA;
string.But for PHP files this will not work in this way, right?
So – how can “include” 1-2 strings to theheader.php
without copying it (as it might be updated on the next theme upgrade)?
- The topic ‘Child theme – include a string to a PHP-file’ is closed to new replies.