• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Clickable Featured Image on Blog Page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Clickable Featured Image on Blog Page

This topic is: not resolved

Tagged: blog page, clickable, featured image

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 7 months ago by petedw.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 11, 2014 at 5:06 pm #134331
    petedw
    Member

    Hi,

    I've enabled the featured image on the blog page which is working fine but I'd like that image to be clickable and link to the post. At the moment I have my list of blog posts on my blog page with images but only the entry title and 'read more' link to the post.

    How do I code if the post has a featured image, make it clickable and link to the post?

    Many Thanks

    Pete

    P.S. My site is currently hosted locally so I am unable to provide a link. However, I doubt 1 will be required for this

    December 15, 2014 at 3:56 am #134568
    Brad Dalton
    Participant

    They should be linked by default.


    Tutorials for StudioPress Themes.

    December 15, 2014 at 4:10 pm #134623
    petedw
    Member

    Any idea's what I should be looking for that I may have modified to prevent this from happening then?

    January 1, 2015 at 9:50 am #135795
    petedw
    Member

    I'm still struggling with this 1. Could someone please assist. I'd just like to say if the if there's a featured-image link it to the post.

    Thank you!

    January 1, 2015 at 1:31 pm #135816
    petedw
    Member

    Finally found my answer. For those wondering, withing functions.php I added the following (in bold):

    <a href=
    "
    ' . get_permalink($post->ID) . '
    " >

    //* Add featured image above the entry content
    add_action( 'genesis_entry_content', 'generate_featured_photo', 8 );
    function generate_featured_photo() {
    	if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    
    	if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<div class="featured-image"><img src="%s" alt="%s" /></div>', $image, the_title_attribute( 'echo=0' ) );
    	}
    }
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble