- This topic has 9 replies, 3 voices, and was last updated 3 years, 8 months ago by
Ying.
-
AuthorPosts
-
July 20, 2022 at 4:55 am #2288318
Oliver
I copied one of Mikes query loops templates from generateblocks into my website, specifically the one that shows the first post in a double grid where the featured picture is to the left and the title, terms and date is to the right. I see that it works differently than a normal query loop block in the sense that there is no picture block to the left, but rather a container background. I guess this is to ensure the layout stays the same no matter what picture is dynamically added as the background. Is there a way to make it so that the picture is also clickable like the other posts on the page?
Thanks in advance
July 20, 2022 at 7:12 am #2288419David
StaffCustomer SupportHi there.
Whilst its using a Container Block background you would need GenerateBlocks Pro, as that includes an option to make the container a link.
July 20, 2022 at 7:33 am #2288442Oliver
Ok David, thanks for the answer! I´ll consider that option!
By the way, I like your designs the best from the site library and pattern library. Please create some more when you have the time 🙂
have a nice day
July 20, 2022 at 8:02 am #2288639David
StaffCustomer SupportAww man – thank you for the kind words 🙂
Do you have a site with the query block in place?
If so share a link and ill see if we can make that image clickable 🙂July 20, 2022 at 8:52 am #2288685Oliver
Amazing! Yes, I do:
Thanks a lot man!July 20, 2022 at 9:00 am #2288698David
StaffCustomer Support1. Select the Grid block thats inside Query Loops post template:
https://www.screencast.com/t/7Oo4HM8cUzqm
And in Advanced > Additional CSS Classes add:
aside-featured-post2. Add this CSS:
.aside-featured-post { position: relative; } .aside-featured-post h2 a:before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }That should make the whole post clickable.
July 20, 2022 at 9:15 am #2288720Oliver
it is not working quite yet.
I applied the class and added the class to additional CSS but .aside-featured-post and .aside-featured-post h2 a:before are red as if something is wrong with those two sentences
maybe you want to login and try yourself? if so i´m pasting you the login details
July 20, 2022 at 11:15 am #2288829Ying
StaffCustomer SupportThere’s a
}missing before David’s CSS 🙂
https://www.screencast.com/t/bHJpd8Kupo0PJuly 20, 2022 at 12:40 pm #2288888Oliver
That did it! Thank you very much Ying and have a nice rest of the day!
July 21, 2022 at 9:38 am #2289814Ying
StaffCustomer SupportYou are welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.