I would like to use the header menu space to add shortcode of currency change and social icon/link.
Is there any action/etc that I could use in function.php to add those elements in that space?
Shortocode eg which I would like to add:
[woocs show_flags=1 width='300px' flag_position='right' txt_type='desc']
Any help is welcome, thank you! :)
Well, not functions.php, but I think you can use header.php file for that.
In header.php, please look for the line below:
<?php if ( get_theme_mod( 'brnhmbx_sliderShortcode', '' )
Add your shortcode somewhere ABOVE this line. It's probably a good place to add right AFTER this line:
<div class="site-inner clearfix">
Or BEFORE this one:
<div class="site-top-container-outer clearfix">
While adding the shortcode, you should use it like that:
<?php echo do_shortcode( '[woocs show_flags=1 width='300px' flag_position='right' txt_type='desc']' ); ?>
Hope this helps!
· Follow on Envato· Like on Facebook: facebook.com/burnhambox· Follow on Dribbble: dribbble.com/burnhambox· WPSelected: We're picking the best WordPress themes from ThemeForest, every month.
Thank you very much for your help!
It worked perfectly! :D
Very happy to hear!