Hi Guys,
I was wondering if it possible to place the top bar below the main menu? I would like to place my contact information beneath the menu instead of above it. Your help with this would be greatly appreciated…
Regards,
George
Hey GeoCreo,
Thank you for using Enfold.
You can insert the phone number inside a text widget and then use the following hook to put it inside the main header area.
// https://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Best regards,
Ismael
Hey Ismael,
Thanks for the help. The only challenge is that I would like the top bar to appear with the same styling (i.e. with a color background and social icons) and not just as text. Is there a way to repostion the top header?
Regards,
GeoCreo
Hi,
Please provide a screenshot or a mockup of the layout that you’re after so that we can understand the request better. Use imgur or dropbox for the screenshot.
Best regards,
Ismael
Hi Ismael,
Here is a link to the layout that I would like, where the top bar is under the menu instead of above it.
Kind regards,
GeoCreo
Hi,
Thank you for the info. You can move the top bar after the main header with the following script.
add_action('wp_footer', 'ava_custom_script');
function ava_custom_script(){
?>
<script type="text/javascript">
(function($) {
$('#header_meta').detach().insertAfter('#header_main');
})(jQuery);
</script>
<?php
}
Add it in the functions.php file.
Best regards,
Ismael
Thanks Ismael.
I am getting an error that reads:
Your PHP code changes were rolled back due to an error on line 586 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.
syntax error, unexpected ‘function’ (T_FUNCTION)
The line being referred to is:
function ava_custom_script(){
Hi Ismael,
I’ve just entered the code again and it’s now working :)
Thanks a lot for your support!
Kind regards,
GeoCreo