Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1454337

    I have a ‘book now’ button set in the header secondary menu, but I’d prefer it in line with the burger menu and search icon in the main menu.

    I’d prefer the button to be larger and have a purple outline too.

    How can that be done?

    #1454857

    go to your dashboard – menu and insert as last item your wanted link as individual Link
    place in your main menu – you can see besides each menu item a little arrow to edit a menu-item.

    edit that last item and insert to the css input field: menu-item-avia-special cta
    the cta is only to style it without influencing other menu-items with the same class menu-item-avia-special
    maybe mark allready the menu item style to button.

    If you do not have a css input field – look on top right corner of the menu Options page: a lot of wordpress option windows got there a slide out :

    on menu options slide-out you now can mark to show css attributes

    because of that first class – it will stay visible even if burger menu is active !
    see extraButton (book now) in use: https://webers-testseite.de/
    with:

    .menu-item-avia-special.cta a .avia-menu-text {
      color: #FFF !important;
      border: 2px solid purple !important;
      border-radius: 7px !important;
      background-color: #d935d9 !important;
    }
    #1455085

    Hi,

    Thanks for helping out @guenni007 :-) Did you try that out and did you have any luck with it @sandy?

    Best regards,
    Rikard

    #1457251

    Thank you for the very helpful information. The “book now” button appears in the burger menu. How can it be retained outside of the burger menu?

    #1457340

    Hi,
    When I check it is outside the burger menu:
    Enfold Support 6183
    where did you want it to show? Perhaps a mockup would help.

    Best regards,
    Mike

    #1457352

    That is the secondary menu button that I had from the start, but it is not the main menu button that is wanted. If you click on the burger menu, you might see the new button that should be beside the burger menu, not in it, as per Richard’s example at https://webers-testseite.de/.

    #1457369

    Hi,
    Thanks for the feedback, the issue is that the example link is using a normal menu and you are using a mobile burger menu for your desktop, these are two different menus.
    Whe I checked your site I found no “Book Now” button so I created a new one for you, and added the required custom class menu-item-avia-special cta which was disabled on your site, and then I added this css:

    .html_burger_menu_active #header .avia-menu .menu-item-avia-special.cta {
      display: block !important; 
    }

    and Guenni007’s solution works great, thanks for sharing Guenni007!
    Enfold Support 6191
    you will need to adjust the button url as I didn’t know the like you wanted.

    Best regards,
    Mike

    #1457388

    Thank you! The problem was that the CSS class specified in my menu item (on the dev not staging site) was missing a space before cta. The button now appears as proposed.

    However, it overlaps the logo on mobile, as it also does on https://webers-testseite.de/. Can the logo be positioned above the menu items (book now, search, burger) on mobile only?

    #1457399

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) {
        .responsive #top #wrap_all .main_menu {
         position: relative;
         height: 66px;
        }
        .responsive #top .av-logo-container .avia-menu {
        width: 100%;
        display: flex;
        justify-content: center;
        }
        .responsive #top .logo {
        height: 54px !important;
        width: 100%;
        display: flex;
        justify-content: center;
        }
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1457402

    That works, thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Header button beside burner menu and search icon’ is closed to new replies.