Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1192739

    I’m trying to setup the following header layout logo left, widget right centered navigation below
    before https://snipboard.io/kThWLs.jpg
    after – https://snipboard.io/LmzW62.jpg
    https://lsbtymkiw.hostworks.com/

    Thanks

    #1192828

    Hey hostworks,

    Please try the following in Quick CSS under Enfold->General Styling:

    #text-9 {
        position: absolute;
        right: 20px;
    }

    Best regards,
    Rikard

    #1192913

    Perfect, thanks Rikard!

    #1192914

    What about centering the nav options evenly spaced?

    #1193053

    Hi,

    Thanks for the update. Do you mean that you want your menu items spread across the container with an even space between them? If so then it’s not something I would recommend that you do, since it’s difficult to get it responsive, and the menu would likely break if you add or remove menu items.

    Best regards,
    Rikard

    #1193153

    Can they just be centered a group in the container?

    #1193178

    Hi,

    Yes, that should be possible. Please try this CSS:

    .html_header_top.html_bottom_nav_header #header_main_alternate .main_menu {
        width: auto;
        float: none;
        display: table;
        margin: 0 auto;
    }

    Best regards,
    Rikard

    #1193366

    Perfecto! Thanks again Rikard!
    Now, this has created a couple of conditions:
    1) on viewing on tablet/landscape, I get a funny vertical black line on the logo, and a horizontal black line below the logo.

    2) The schedule a call button overlays the burger menu on smaller screens ( I guess there is no room for the button on smaller screens). maybe I should eliminate the button on screens smaller than Tablet landscape (1024×768.

    #1193419

    Hi,

    1. Please try this CSS as well:

    @media only screen and (max-width: 1260px) {
    #top #header .av-main-nav > li > a {
        background-color: transparent;
    }
    }

    2. It can be tricky to get the custom button and the burger menu to get along on small screens, maybe it would be better if we removed your custom button, then you add it to the page layout instead, and hide it for all screens except small ones?

    If you like that idea then you can hide the widget on small screens using this:

    @media only screen and (max-width: 767px) {
    #text-9 {
      display: none;
    }
    }

    Best regards,
    Rikard

    #1193555

    This didn’t eliminate the black lines at 1024 x 768.

    It did eliminate the custom button from small screens, but did not for Small tablet landscape (800×600) or Tablet portrait (768×1024). I even tried it down to 700.

    • This reply was modified 4 years, 8 months ago by hostworks.
    #1193731

    Hi,

    The CSS I gave you is being overridden, please try this instead:

    @media only screen and (max-width: 1260px) {
    #top #header .av-main-nav > li > a {
        background-color: transparent !important;
    }
    }

    Best regards,
    Rikard

    #1193857

    Not quite. check out the bottom three screen displays

    https://snipboard.io/zvrGV4.jpg

    #1194017

    Hi,

    Thanks for the screenshot, but that is not what I gave you CSS for. You have elements which will be covered on both sides, what exactly to you want to remove or change? If you want to remove your widget on tablet sizes as well then you can adjust the code I sent your previously:

    @media only screen and (max-width: 1024px) {
    #text-9 {
      display: none;
    }
    }

    Best regards,
    Rikard

    #1194041

    Thank you, that cleared that up.
    The vertical black line and vanishing nav are back however.

    I’m sure you are growing tired of me by now.
    I’ve built many Enfold websites, but have not experienced this many issues.

    #1194295

    Hi,

    No, we’re here to help with problems like these :-)

    I can’t see the black line anymore on my end though, I checked in both regular and incognito windows. Also, how do you want to move the burger menu/your header widget so that they don’t clash? We can help you out with CSS for that, but we need to know what you would like first.

    Best regards,
    Rikard

    #1194298

    good question. I guess we’ll have to hide the button on Small tablet landscape (800×600) & tablet portrait (768×1024) & Tablet landscape (1024×768)(1024×768) because there’s no room. I don’t know how we can do it. we’ll have to put a link in the main navigation.

    1) So, hide the button on these three layouts.
    2) can I add schedule a Call as a custom link on the main nav after Contact Us and style it somehow so that it stands out?

    #1194406

    Hi,

    Thanks for the update. Please try this to hide the widget when the mobile menu activates, and move the burger menu to the right:

    @media only screen and (max-width: 1260px) {
    #text-9 {
        display: none; 
    }
    .html_header_top #top .av_menu_left .main_menu {
        left: auto;
        right: 0;
    }
    }

    I’m not sure how you want it to stand out, but you can select for the menu item to show as a button under Appearance->Menus. If that is not what you are looking for then please try to explain a bit further.

    Best regards,
    Rikard

    #1194440

    Rikard,

    I already have these items. Should this replace these existing entries?

    /* fix for tablet issues */

    @media only screen and (max-width: 1260px) {
    #top #header .av-main-nav > li > a {
    background-color: transparent !important;
    }
    }

    /* fix to eliminate the schedule button on smaller screens */

    @media only screen and (max-width: 700px) {
    #text-9 {
    display: none;
    }
    }

    /* Code to place a widget to the right of the logo, when using a Logo left, Widget right and menu below. */

    #text-9 {
    position: absolute;
    right: 20px;
    }

    #1194692

    Hi,

    You can remove this:

    /* fix to eliminate the schedule button on smaller screens */
    
    @media only screen and (max-width: 700px) {
    #text-9 {
    display: none;
    }
    }

    Then replace this:

    @media only screen and (max-width: 1260px) {
    #top #header .av-main-nav > li > a {
    background-color: transparent !important;
    }
    }

    With this:

    @media only screen and (max-width: 1260px) {
    #text-9 {
        display: none; 
    }
    .html_header_top #top .av_menu_left .main_menu {
        left: auto;
        right: 0;
    }
    #top #header .av-main-nav > li > a {
        background-color: transparent !important;
    }
    }

    Best regards,
    Rikard

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