Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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,
    George

    #893077

    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

    #896659

    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

    #896828

    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

    #897046

    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

    #897333

    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

    #897453

    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(){

    #897644

    Hi Ismael,
    I’ve just entered the code again and it’s now working :)

    Thanks a lot for your support!

    Kind regards,
    GeoCreo

    #897796

    Hi,

    Glad it worked. Please feel free to open a new thread if you need anything else. :)

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Can I move the top bar below the main menu?’ is closed to new replies.