Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #737808

    Hi there,

    I’m using the most up-to-date version of Enfold – Header style – logo centered/menu below.

    I’d like to add header widgets to either side of the logo – I’ve managed this on one side on the logo, using the Enfold documentation (functions.php + css), but I’m finding it difficult to place one on the other side.

    Any help most appreciated.

    Thank you
    Carole

    #737817

    Hey cab72!

    Please change your custom CSS code to following one

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

    Best regards,
    Yigit

    #737844

    Hi Yigit,

    Thank you or the quick reply.

    I’d like to have two widget in the header area- one on the left and one on the right. Is this possible?

    Kind Regards

    Carole

    #738005

    Hi Carole,

    Yes, that would be possible as well. Please change your code in functions.php file to following one

    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    	dynamic_sidebar( 'headertwo' );
    }

    And then create another widget area called “headertwo”. Then you would need to update your custom CSS code. After adding the second widget area to header, please let us know.

    Best regards,
    Yigit

    #742865

    Hi Yigit,

    Should I make a functions.php document for my child theme?

    Also, where should I insert the php code? (not proficient in php)

    Thanks very much for your help

    Carole

    #743119

    Hi Carole,

    You can download a child theme from here: http://kriesi.at/documentation/enfold/downloads/. Place the code at the bottom of the functions.php file.

    Best regards,
    Rikard

    #743625

    Hi Rikard,

    Thank you for sending on the link.

    I have uploaded the functions.php to the child theme and added the header php code. I’ve also added a second widget area.

    Not sure how I should style the widget to have it appear on the right hand side. Would you help?

    Thank you

    Carole

    #743777

    Hi Carole,

    Ok, thanks for the feedback. The URL you posted is password protected, but I couldn’t find any passwords in the thread. Could you post that in private as well please?

    Best regards,
    Rikard

    #743986

    Hi Rikard,

    Sorry about that – have sent as private content.

    #744222

    Hi,

    Thanks for that. Is it only the second widget you want to have on the right? If so please try this in Quick CSS:

    #text-13 {
        left: auto;
        right: 0;
    }

    Best regards,
    Rikard

    #747234

    Hi Rikard,

    Used the css as given – but now the second header has disappeared.

    Not sure what to do.

    Thanks for your help

    Carole

    #749173

    Hi!

    Please adjust the latest css code to the following.

    #header #text-13 {
        left: auto;
        right: 0;
    }

    Best regards,
    Ismael

    #753953

    Hi Ismael,

    This worked perfectly, thank you.

    I’d like to hide the header widgets on smaller screens – is this possible?

    Many thanks for your help.

    Carole

    #754102

    Hey!

    Yes, that’s possible. Please add this css code.

    @media only screen and (max-width: 767px) {
      /* Add your Mobile Styles here */
      #header .widget {
          display: none !important;
      }
    }

    Regards,
    Ismael

    #754469

    Thank you so much Ismael! That’s done the trick.

    Many thanks for all your great support and help with this – completely resolved it.

    Kind Regards
    Carole

    #754582

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Header widgets | logo centre, menu below’ is closed to new replies.