adding header html elements in a child theme with functions.php
-
hello,
I am designing a child theme using Twentyeleven as parent.
I’d like to add some html elements over the header image: icons to facebook page, twitter accounts etc..
I could manage it just pasting those icon on the header image and then using an image map, but I prefer to have the img tags called in separate div’s and then styling the absolute positions of these div’s via css.
I could easily add the div’s to header.php, but I would like to avoid as much as possible adding modified parent’s template files to the child theme.
The solution I am thinking is to exploit some event (hook or action) to trigger a function in the child’s functions.php to add those html elements in the <body>, but I can’t find a specific action to use.
I mean, when WordPress core start writing the body, then please write also my div’s and img’s.
Is this possible, and could someone give me some hint?
thanks.
- The topic ‘adding header html elements in a child theme with functions.php’ is closed to new replies.