I want to use a news ticker in the top bar. I’ve installed a ticker news plugin and set up my shortcode. So how do I get the shortcode to work in the top bar? Or alternatively, how do I get any news ticker to be placed right where my current top bar is located? Mine is the blue horizontal bar below the post carousel in Ethos stack.
http://35.188.193.58/
Hi there,
Thanks for writing in.
Since it’s a top bar wrapped in <p></p>
, adding another set of HTML may break it (shortcode output), so the good option is the alternative that you’re referring. You can edit this file \framework\legacy\cranium\headers\views\global\_topbar.php
and add this code
<?php echo do_shortcode('[your_shortcode]'); ?>
just above this line
<?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?>
Just change it with your preferred shortcode.
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.