If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I know of a site that uses Enfold and has a stock quote in the header (non-fixed header with social icons and additional navigation), and they’re doing so via a WP plug-in. I desire to do virtually the same thing, and I’ve installed an appropriate plug-in that gives me the shortcode to use. However, my insertion of the shortcode in the “Phone Number or small info text” field was met with no success. How can I accomplish this?
(The site referenced that has the content already is http://www.breitlingenergy.com.)
They have added in that div container to the header.php file and then probably used do_shortcode or added in the php call from the plugin/raw code.
So, for a non-programming-guy like me (hence my decision to use WordPress), what’s the easiest way to recreate that outcome? What code would I need to put in the header.php file?
I’m assuming the syntax to use do_shortcode is”
But how do I put a div in the header?
You can edit header.php, find this code on line 92:
<div id='header_meta' class='container_wrap container_wrap_meta'> <div class='container'>
Create a new div below then use the do_shortcode function. Referring to the site, maybe you add something like this:
<div class="stockQuote"> <?php echo do_shortcode('[whatever_my_shortcode_is]'); ?> </div>
You must be logged in to reply to this topic.