Featured image linkable?

  • Author
    Posts
  • #158242

    jayoung18
    Member

    Hi Ricardo,

    Is it possible to make the featured images from posts clickable on the front page?

    The blog I need help with is harlemrenhs.org.

    #158249

    ricardpriet
    Theme Author

    Hello 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.

    #158259

    jayoung18
    Member

    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?

    #158292

    ricardpriet
    Theme Author

    Hello 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.