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.

GB 1.9 RC, Wrapper link type forces display: block

  • Unless I’m overlooking something, it appears that creating a container link with “Link Type” set to “Wrapper” will force the anchor element to display:block. This prevents the new global styles application from defining the display property.

    For example, I can create a style for the container:

    
    .card__link {
       display: flex;
       align-items: flex-start;
       flex-direction: column;
       justify-content: flex-start;
       position: relative;
    }
    

    But the auto-generated display property overrides it:

    
    .gb-container-ebcc212f {
       display: block;
    }
    

    Is this the intended behavior?

    BTW, this update is AMAZING. I’m loving it.

  • Hi there,

    Glad you are happy with the new update!

    Yes, GB adds the display:block to the wrapper type container link to make it work if it doesn’t detect any display attribute being set for the local block, but it does not check the global style unfortunately.

    A workaround is to set the display value for the local container, even a global style is applied.

    I’ll mark this as improvement for the dev team, maybe it can get fixed, maybe not, we’ll see 🙂

  • Thank you, Ying. I can work around it — I thought I had potentially found a bug. Thanks for your help!

    -Addison

  • You are welcome and thanks for reporting this, we will have a discussion to see if it can be improved 🙂

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