Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1493719

    Hello,

    I would like to add to my header two buttons “faire un don” et “newsletter” on the right side of it (exactly like in the example of the image in the attached file).

    Is an easy way to do that ?

    Thank you !

    #1493730

    Hey fiorettipau,

    Please refer to this: https://kriesi.at/documentation/enfold/header/#adding-a-header-widget-area

    Best regards,
    Rikard

    #1493759

    I did all the steps, but I find it difficult to understand how can I style the widget section the height etc, make appear widget title on the right of my header (actually it’s behind the logo).

    Thank you

    #1493771

    Hi,

    Thanks for the update. I can’t see a widget on your actual site, if you need help with styling then we need to see the actual element.

    Best regards,
    Rikard

    #1493774

    Can you post a link to the page in question?
    It will then be easier to advise you on which method to use to place the widget (which hook to use) and which CSS is required.
    (follow Rikards link above)

    /* ==== Header widget area
    Logo left, Menu right
    Logo right, Menu Left
    Logo center, Menu above
    ==== */
    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    	function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }
    
    /* ==== Header widget area ============
    Logo left, menu below
    ==================================== */
    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    	function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }
    

    after that create your new widget-area on :

    _______________________

    if you like to have the widget-area always nearby the logo – it might be better to use a filter to place the widget area:
    See here a different solution with a widget area inside logo container ;)
    https://basis.webers-testseite.de/
    tell me – if this is what you like to have – and if your header setting is in this way.

    See snippets and basic css for that on: https://webers-testseite.de/fiorettipau/

    i inserted to that widget-area a html widget – (copy&pasted html code from an enfold button-row)
    Of course, you have to adapt the CSS to your header configuration. And you may also need to set a responsive behaviour.

    f.e. if you got a shrinking header – you had to decide f.e. if you set the widgettitle to display none on header-scrolled.

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