Tagged: , , ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #483287

    Hi guys,

    I followed the instructions for a widget area in the header:

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

    Then I aligned them with CSS:

    #header .widget {
    float: center;
    left: auto;
    line-height: 5px !important;
    position: relative;
    right: -600px;
    top: 10px;
    z-index: 9999;
    }

    But now the Main Menu links do not work anymore and on mobile the hamburger menu is not aligned anymore on the top.

    How can I fix this?

    Sincerely,
    Morticka

    #483493

    Hi Morticka!

    You have them laid out on top of your main menu so the links will not be clickable. Your trying to center them correct? Try this CSS out instead.

    #header .widget {
      left: 50%;
      line-height: 5px !important;
      position: absolute;
      top: -63px;
      transform: translate(-50%);
      z-index: 9999;
    }

    Best regards,
    Elliott

    #483547

    Hey Elliot,

    Yes, I was able to align them the way I wanted it using your code, thank you! :)

    One more question: The header widget does not look good on mobile, it’s almost on top of the logo. Is there a way to show the widget only on desktop and not on mobile?

    Sincerely,
    Morticka

    #483553

    Hey!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 767px) {
    #header .widget { display: none !important; }}

    Cheers!
    Yigit

    #483834

    Great, thx Yigit! I removed it from mobile and iPad portrait mode. But on the iPad in landscape mode the widget lies on top of the menu. Is there a way to make the header widget responsive?

    Sincerely,
    Barb

    #483841

    Hey Barb!

    When i resized the browser window i could not reproduce the issue. Can you please post a screenshot and show? :)

    Regards,
    Yigit

    #483858

    Hi Yigit,

    Never mind, I’ve removed the header widget and I’m using Enfolds Social Icons in the header! Looks better that way too :D.

    Is there however a way to display Enfolds social icons in the mobile menu?

    Sincerely,
    Barb

    #483861

    Hi!

    Please add following code to Quick CSS

    @media only screen and (max-width: 990px) {
    ul.social_bookmarks {
        display: block!important;
    }}
    @media only screen and (max-width: 767px) {
    ul.social_bookmarks {
        position: absolute!important;
    }}

    Cheers!
    Yigit

    #483865

    Awesome Yigit!! :D

    How can I make them only bigger on mobile and move them a little to the left and have more space between them?

    Sincerely,
    Barb

    #483873

    Hi!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 990px) {
    #top .social_bookmarks li a {
        font-size: 30px;
    }
    #top .social_bookmarks li {
        margin-right: 15px;
    }
    ul.social_bookmarks { 
    right: 100px !important;
    }}

    Best regards,
    Yigit

    #483879

    Perfect, thx Yigit! You can close this topic :D

    Sincerely,
    Barb

    #483881

    Hey!

    You are welcome Barb :) Have a great rest of the day!

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Header widget menu and mobile problems’ is closed to new replies.