I would like to add a shortcode to my header. I know I need to go into my child theme's header.php file and insert the div, when I do this it adds the div when I view the pagesource, but it doesn't add the shortcode? The shortcode is for a search box relating to the Essential Grid plugin i have on the site. The plugin makers (ThemePunch) have said this shortcode will work anywhere, but they won't help me in terms of how to use the do_shortcode() function because it is off-topic for their help forum.
The code i have added to my header is a div with the CSS class .mysearch which is:
<div class="mysearch"> <?php echo do_shortcode('[ess_grid_nav id="search-input" alias="maingrid"]'); ?> </div>
Am I missing something out here?
Unfortunately this is a localhost site so I don't have a live url to post.
Many thanks in advance for any help