Using WP Head to hook into a specific part of the header?
-
This is my first plugin. I’m trying to add a tagline underneath the logo.
I’m using this code in the plugin:
add_action('wp_head', 'tagline'); function tagline() { //Close PHP Tags ?> <h3>Outdoor Living and General Construction</h3> <?php
It works but it places it in a random place and I would like it to be outputted here, underneath the logo:
<header id="main-header" class="et_nav_text_color_dark"> <div class="container clearfix"> <a href="#"> <img src="https://#.com/wp-content/uploads/2014/12/Logo2.png" alt="Logo" id="logo" /> </a><h3>Outdoor Living and General Construction</h3>
When I add in the div or header where I would like it to go though, it breaks the site.
Any suggestions on the correct way to go about this?
- The topic ‘Using WP Head to hook into a specific part of the header?’ is closed to new replies.