Site logo

[Support request] Make container block clicable

Home Forums Support [Support request] Make container block clicable

Home Forums Support Make container block clicable

  • This topic has 3 replies, 2 voices, and was last updated 3 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2568288
    Javier

    I used to use this code from this post to make a container clickable taking the inside a href url.

    .gb-container.my-linked-container .gb-inside-container {
        position: initial;
    }
    .gb-container.my-linked-container a:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
    }
    
    .gb-container.my-linked-container a {
    	text-decoration: none;
    }

    With the new version of GP + GB it doesn’t work, I think it’s because it doesn’t create the .gb-inside-container div.

    How can I make this work again?

    #2568463
    David
    Staff
    Customer Support

    Hu there,

    try this:

    .gb-container.my-linked-container {
        position: relative;
    }
    
    .gb-container.my-linked-container a:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
    }
    
    .gb-container.my-linked-container a {
        text-decoration: none;
    }
    #2568510
    Javier

    Thank you David, It doesn’t work but i have changed to this and now it’s working:

    .gb-container.my-linked-container {
        position: relative;
    }
    
    .gb-container.my-linked-container .gb-headline {
        position: initial;
    }
    
    .gb-container.my-linked-container a:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
    }
    
    #2569473
    David
    Staff
    Customer Support

    Glad to hear that!

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