Site logo

Archived topic

Unable to get container to be link

3 replies · Started by Robin on May 16, 2022

Viewing posts 1–4 of 4

Hi,
I know this question has been asked before and answered, but unfortunately I must be missing something obvious as I cannot seem to get it to work. Sorry about that.

This is what I am trying to follow: https://generatepress.com/forums/topic/add-link-to-container/

I am using you Construction site from the Site Library and I am trying to make the images in the grid clickable (as opposed to requiring the user to click on "Learn More ->").

The structure is:
- Container (with background image) that has a single Headliner within it.
- I give the container the class .linkable-container
- I add the CSS

I expect the Container to be clickable.
I see that just the Headliner is clickable.

Could you please advise what I am doing wrong here.

Thank you.

Robin

Hi there,

change this CSS:

.gb-container.linked-container .gb-inside-container {
    position: relative;
}

to:

.gb-container.linked-container {
    position: relative;
}

Thank you David. :-)

You're welcome

This archived topic is closed to new replies.