Site logo

Archived topic

Making Blog Tiles Clickable

6 replies · Started by Janahan on February 5, 2022

Viewing posts 1–7 of 7

Hi everyone,

I currently have some blog tiles which I want to make clickable. I currently have the title and "read more" button that's clickable but want the entire container to lead to the blog post. I tried something like this: https://generatepress.com/forums/topic/making-blog-post-container-clickable/#post-602864 but not having any luck. The pointer cursor appears when I hover over the tile but it's not clicking. Any insight would be greatly appreciated! Ty for the help!

Hi!

Added to the private info area. Thanks for your help :)

Hi Janahan,

You won't need to use the JS in your case, so you can remove the hook element.

Try this CSS:

.gb-container.gb-container-99e0f8fe.gb-has-dynamic-bg a:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

This worked! Thank you everyone for the help and support! Hope everyone has a wonderful weekend :)

You are welcome :)

You too, enjoy your weekend!

This archived topic is closed to new replies.