adding image to 2015-child's header.php via functions.php
-
I have stared at various pages on how to use functions.php to make changes on a child theme (for better or worse, my parent is twenty fifteen). Alas, I do not understand “hooks”. Can someone point to a page that spells out how to do this? (ie: coding that is a little more specific that “add your coding here”)
I would like to add my logo to go just below the following coding on header.php:
<div id="sidebar" class="sidebar"> <header id="masthead" class="site-header" role="banner"> <div class="site-branding">This is as far as I managed; I know it’s wrong, but this is what comes of knowing just enough about coding to get myself in trouble….
if (is_dynamic_sidebar()) { add_action ('after div.site-branding' , 'add_logo'); function add_logo() { echo "[image] ...it's a work in progress"; } }Thank you.
-E Morris
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘adding image to 2015-child's header.php via functions.php’ is closed to new replies.
