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 2.0: Insert link to container

  • Hi community, how can I insert link to container block in GB 2.0? in GB 1.0 I can do it easily, but in GB 2.0 I don’t see the option. *I’m using Pro version

  • Hi there,

    It requires GB Pro plugin, do you have it? If so, you would create a global style, as the Container Link of v1 has been deprecated.

    1. Select the Container Block and create a Global style name eg. container-link
Set the Global Style > Position -> Position to Relative.

    2. in the Global style selector add: a:before but do not compound the selector.
This will set the selector to: .container-link a:before.

    Set the Global style > Position to Absolute, and the Top, Right, Bottom and Left values to 0, content to "".

    Now in each container block you just need to:

    i) add the container-link global styles.

    ii) include a block within the container that has a link inside it. That link will cover the container.
Make sure just add the one link inside a container.

    Or you can go to my website, download the Query 1 (container link) pattern for free, and follow the instructions comes with the download to create a global style easily.

  • Hi, At a quick glance this looks a little complex if one compares to the old method. Is there still an easy way to add also Aria-label as well?

  • Hi there,

    If you have GB Pro, you can use the custom attributes feature to add the required ARIA attributes.
    https://docs.generateblocks.com/article/custom-attributes/

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