Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #457836

    Hello, I want to add to the main head area my contact details (phone numbre and a button for Online requetst).

    I have seen in other post the way to do it:

    If you are wanting to add a widget area to your header then add this to the bottom of your functions.php file.

    add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( ‘header’ );
    }
    And then navigate to Dashboard > Appearance > Widgets and create a new widget area named header and add some widgets to it.

    Depending on what your trying to do some CSS code will be required. If you want the widget area to be centered in the header then add this to your custom CSS.

    #header .widget {
    left: 50%;
    padding-top: 0;
    position: absolute;
    top: 0;
    transform: translate(-50%);
    }

    I have done it exactly the way you said, but the widget area appears under the main menu, instead in he header (in the other side of the logo). Maybe the problem is where I insert the code in the functions.php file – you indicate to include it at the bottom of that page and is where I include it.

    Please, indicate me how to do it. Thank you

    #457972

    Hi carmen!

    Thank you for using Enfold.

    You can try to adjust the css code to change the position of the widget.

    #header .widget {
    left: 50%;
    padding-top: 0;
    position: absolute;
    top: 0;
    transform: translate(-50%);
    }

    It’s possible to use negative values in the top position property. Please give us a link to the actual site so that we can check it.

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.