Featured image linkable?
-
AuthorPosts
-
jamescaputo2
MemberHi Ricardo,
Is it possible to make the featured images from posts clickable on the front page?
The blog I need help with is: (visible only to logged in users)
ricardpriet
Theme AuthorHello there,
thank you for writing.Not exactly the image, but you can make all the post area clickable (including features image and excerpt). Try this code:
.home .hentry, .archive .hentry, .search .hentry { overflow: hidden; } .home .hentry .entry-title a:before, .archive .hentry .entry-title a:before, .search .hentry .entry-title a:before { content: ""; display: block; width: 100%; height: 2000px; position: absolute; }
Please let us know,
thank you!
Ricardo P.Yes, that works Ricardo. One more question. If I use that method, individual links don’t work anymore. For example, the very first post titled “Daily student attendance form” I have two links. When I put in the CSS code the links will just take the user to the post itself. Is there a WordPress addon I can download to make thumbnail images that will be clickable links instead of a plain blue text link?
ricardpriet
Theme AuthorHello there,
yes, you are right. Then add this CSS instead to put the individual links and text over the post link:
.home .hentry, .archive .hentry, .search .hentry { overflow: hidden; } .home .hentry .entry-title a:before, .archive .hentry .entry-title a:before, .search .hentry .entry-title a:before { content: ""; display: block; width: 100%; height: 2000px; position: absolute; } .home .entry-summary, .archive .entry-summary, .search .entry-summary { position: relative; z-index: 9; }
About plugins, unfortunately we have not tested any of that kind of plugin with this theme.
Hope this helps :)
Ricardo P.
- The topic ‘Featured image linkable?’ is closed to new replies.