Site logo

[Resolved] How to make a clickable container with GB?

Home Forums Support [Resolved] How to make a clickable container with GB?

Home Forums Support How to make a clickable container with GB?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1482248
    David

    Thanks for the help, but unfortunately your suggestion has not worked: https://generatepress.com/forums/topic/how-would-i-make-a-clickable-container-with-gb/page/2/#post-1481808

    You’ll see the row of three containers at the bottom, which I want to be clickable. To start out, I tried your suggestions on “CONSULTING”. I added the CSS you suggested, set the container block to clickable-container and added a link in the headline block within.

    The headline is clickable, but not the parent container.

    FYI, the site was in Divi – now removed – and I am rewriting it using GP & GB.

    Thanks!

    #1482374
    Leo
    Staff
    Customer Support

    Hi there,

    Are you using any caching plugins? If so can you disable it so I can take a closer look at the code?

    #1482449
    David

    The site is not using any caching plugins. I have disabled CDN and just flushed the object cache. As hosting is with Pressable, I think that’s all I can do.

    #1483046
    David
    Staff
    Customer Support

    Try this CSS instead:

    .gb-container.clickable-container a:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
    }
    
    .gb-container.clickable-container .gb-inside-container {
        position: initial;
    }
    #1483129
    David

    Hi David,

    Thanks for helping on a Sunday – your new CSS fixes the issue.

    #1483172
    David
    Staff
    Customer Support

    Awesome – glad to heat that!

    #1484654
    David

    After your suggested code worked, I saw that what you originally suggested was exactly the same. The first time it did not work, the second time it did. Perhaps my mistake.

    #1484799
    David
    Staff
    Customer Support

    No problems 🙂 Glad to hear its resolved

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