[Resolved] Background Image Link with GenerateBlock

Home Forums Support [Resolved] Background Image Link with GenerateBlock

Home Forums Support Background Image Link with GenerateBlock

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1284765
    Samuel

    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 !

    #1285052
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #1293511
    Samuel

    Hi Tom,
    Here it is : https://destinationsudouest.com/
    Thanks

    #1293781
    David
    Staff
    Customer Support

    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

    #1293789
    Samuel

    Perfect ! Thanks a lot

    #1294429
    David
    Staff
    Customer Support

    You’re welcome

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