Site logo

Archived topic

Background Image Link with GenerateBlock

5 replies · Started by Samuel on May 14, 2020

Viewing posts 1–6 of 6

Hi,

I'm giving a try at Generate Block to make a homepage template.

I would like to have an image with title on it that link to a category. But not only link with title but with all the block, ideally with a color hover effect...

I tried to use the container with background image and title, but it seems that I can only link the title right ? Is there a way to extend the link area to all the div or maybe I can do that with another way ?

Thanks !

Hi there,

This type of thing is planned for the pro version.

For now, you'd need to use CSS. Feel free to link us to the site and we'll take a look :)

Hi there,

add this CSS:

.click-container {
    position: relative 
}
.click-container a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

Then select the Container block you want to apply it to and in Advanced give it an Additional CSS class of click-container

Perfect ! Thanks a lot

You're welcome

This archived topic is closed to new replies.