In blog page, change featured image link to post itself rather than larger image

resolved (3 posts) (2 voices)

  1. benji


    We have been using and enjoying the InFocus theme for awhile now, thank you for such a versatile and full-featured theme.

    The one thing we are having a heck of a time with is simply changing the featured images for any blog lists to link to the post itself rather than the larger image... This is a common thing that should be a simple one-click button, since most users will click the image to go into the post, not wanting to see a blow up shot... From my experience anyways.

    Is there a simple way to do this? We don't want to have to disable to manually shortcode in a featured image each time, we have 4 blogs running now and planning more... It has to be automated.

    Normally I would just insert some code into the functions.php but it keeps either not working, or earlier it crashed the entire site and had to be restored from backup!


    Action Games Miniatures Team

    blog (with the problem):

    Posted 3 years ago #
  2. benji

    Posted 3 years ago #
  3. Elliott

    Hello benji,

    Open up /wp-content/themes/[your_theme]/lib/functions/image.php and change lines 66 - 67 from this,

    'link_to' => $link_to,
    'prettyphoto' => $prettyphoto,

    To this,

    'link_to' => get_permalink(),
    'prettyphoto' => false,
    Posted 3 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme