-
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
toRelative
.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
toAbsolute
, and theTop
,Right
,Bottom
andLeft
values to0
,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.
-
Kirmoi
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?
-
Alvind
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/
- You must be logged in to reply to this topic.