-
AuthorPosts
-
January 2, 2018 at 2:32 pm #892486
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,
GeorgeJanuary 4, 2018 at 5:11 am #893077Hey 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,
IsmaelJanuary 12, 2018 at 7:53 pm #896659Hey 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,
GeoCreoJanuary 13, 2018 at 5:24 am #896828Hi,
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,
IsmaelJanuary 14, 2018 at 10:22 am #897046Hi 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,
GeoCreoJanuary 15, 2018 at 4:07 am #897333Hi,
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,
IsmaelJanuary 15, 2018 at 10:15 am #897453Thanks 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(){January 15, 2018 at 5:40 pm #897644Hi Ismael,
I’ve just entered the code again and it’s now working :)Thanks a lot for your support!
Kind regards,
GeoCreoJanuary 16, 2018 at 2:07 am #897796 -
AuthorPosts
- The topic ‘Can I move the top bar below the main menu?’ is closed to new replies.
