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

    Hi!

    I’ve got my site up and running. But now I want to get an ‘advertising area’ below the pink Menu bar. I’ve tried everything, including the instructions posted in http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header but I can’t get it to work. No matter which option I use, the header drops over my content and when I try the second option it covers part of my content and the menu bar is streched leaving my site with a big pink bar over it.

    Can you please help me display a advertising area just below the menu bar on every page / post?

    BTW: I am using a Child theme

    #513893

    Hey Pink_Monkey!

    Have you tried going to Appearance > Widgets and create a new widget area and then placing your widget inside your widget area then editing your pages and Widget Area element to the top of your content?

    Cheers!
    Yigit

    #513906

    Hi Yigit,

    I saw that the link http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header didn’t show in the openingpost. But those are the instructions I followed. So I added the code to functions.php in my Child Theme and I added a widget area called Header. But it does not work. All it did was messing up my lay-out, so I had to delete it.

    And because I want it on every page, always showing the same advertisement, I thought the best place to add it is just below the menu bar and just before the title / breadcrumb bar.

    And if I get your solution right I have to edit every page, which is a problem, because most of my pages are ‘Archive pages’.

    #514153

    Hey!

    Did you adjust the css code? Please add it again then add the css modifications:

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

    Adjust the top and left position properties.

    Cheers!
    Ismael

    #514208

    Hi Ismael,

    I am getting close, but I am not there yet. The code I used in functions.php

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

    Which I find kind of strange because my menubar is below my logo. I added the widget area ‘header’ and it works. With your code I can position it centered below my menu bar, so I got that working.

    There is only one problem. The content of the header widget drops over my main content. No matter which setting I change in your code.

    #514550

    Hey!

    I cannot see widget area on your header. Have you removed it? If so, please apply it once again as we are going to need to see your site with the issue to provide you an accurate solution

    Best regards,
    Yigit

    #515036

    Hi Yigit,

    I had the header widget on, but didn’t put any widgets in it, because it is a live site. And because you and I are in different timezones I prefer not to have a live website with content from the header widget dropping over my content. I did however make a screenshot to show you what I mean. The content next to the red arrows should be above the picture. I have uploaded it to my site and put the link in the Private Conent Section below.

    I hope this can show you what is wrong. I also do not mind to give you a temporary login to our site so you can see it for yourself in the backend.

    Best Regards,
    Sebastiaan

    #515108

    Hey!

    Try using the widget again, i’ve changed the code to use the ava_main_header hook instead, which is more appropriate for your kind of header.

    Cheers!
    Josue

    #515211

    Hi Josue,

    thanks once again for your fast response and your fix on my other question. Unfortonately this question is still open.

    I see what you did and I tried that code aswell. This code puts the widget above my logo and it drops its content behind my logo (so this time not running over my content like before but hiding behind it). What I want is the widget in the ‘old’ location, beneath the menu bar, but I want it to push the content down so the header widget does not run over it.

    I hope I can make clear what I’am trying to achieve with some screenshots posted in Private Content.

    Cheers,
    Sebastiaan

    #515220

    Ok, try it now. I’ve changed it to ava_after_main_container.

    #515683

    Josue, you are the best! It works.

    The code below doesn’t center the text / advertisement. When I add <center> to the text / advertisement it does. Is adding <center> to the text / code in the widget the best option?

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

    Hi!

    can you provide us a link to the elements in question? because we need to inspect them. You could try to add “text-align: center;” to your code from your previous post.

    Cheers!
    Andy

    #517187

    Hi Andy,

    as I said in my post before I did just add <center> and it works like a charm. Was just checking if this is the best way to do it.
    And when I understand you correctly it is. So thank you very much for all the help.

    If you want to inspect it for yourself, the site is http://www.divalifestyle.com

    #517448

    Hey!

    It looks great! Glad you figured it out :)

    Cheers!
    Yigit

    #517906

    Getting there :-)
    Thank you all for the big help.

    #517963

    You are welcome, glad to help :)

    Regards,
    Josue

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