Reply To: Shortcode in Bottom Bar or Top Bar

#4817
Ron
Keymaster

Shortcodes do not work on the “Footer Text” option. It only accepts Text & HTML. However, you have 4 action hooks to choose from that you can use to execute PHP on the Top and Bottom bar.

frontier_before_top_bar
frontier_after_top_bar
frontier_before_bottom_bar
frontier_after_bottom_bar

You can use them like this (added on functions.php):

function top_bar_extra() {
   // Add your code here
}
add_action( 'frontier_before_top_bar', 'top_bar_extra' );
function bottom_bar_extra() {
   // Add your code here
}
add_action( 'frontier_before_bottom_bar', 'bottom_bar_extra' );