Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Two button elements show at the same time when using off canvas panel

  • Hi,

    I have two block-hook elements, which are phone number buttons in the menu. However, the problem is that I use the off-canvas panel as my mobile navigation, and when I open the off-canvas panel on mobile, there is also displayed the other element (button) in the background:

    The website is https://zamecnikplzennonstop.cz/

    The logic for the elements is the following:

    – Appointment button – Menu | Block – Hook generate_after_primary_menu | Entire Site
    – Appointment button – Slideout navigation | Block – Hook generate_after_slideout_navigation | Entire Site

    So, I’d need to display only the off-canvas element when actually opening the off-canvas on mobile.

    Thank you very much.

  • Hi there,

    The strange behaviour is due to your custom CSS:

    #site-navigation.toggled .inside-navigation > .gb-button {
        display: block !important;
        order: 5;
    }

    Removing the CSS should fix the issue.

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