Blog Featured Image – Go directly to the article

Support Forums for LiveMesh Themes & Plugins Forums Enigmatic Theme Support Blog Featured Image – Go directly to the article

This topic is: resolved

This topic contains 2 replies, has 3 voices, and was last updated by Yammy yammy 4 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1138
    Arnaudk
    Arnaudk
    Member
    Post count: 5

    Hi,

    Is there a simple way to make that when you click on an featured image (in a homepage of a blog for exemple) then goes directly to the article instead of having the choice between zooming on the image or access the article?

    In the case of a blog, it does not make sense to allow people to zoom on image, they prefer to go directly to the article by clicking on the image.

    Thanks !

    #1141
    Livemesh
    livemesh
    Keymaster
    Post count: 1011

    Hi,

    You need to make the following change in thumbnail-functions.php file located in framework/functions/ folder.

    Change line number number 28 to

    function mo_show_image_info($context) {
    
        return ($context == 'portfolio');
    
    }
    

    Thanks.

    #12206
    Yammy
    yammy
    Member
    Post count: 2

    Instead of that, I did that to have it suppressing zoom for both portfolio and blog:

    thumbnail-functions.php:28

    if( ($context == ‘portfolio’) || ($context == ‘starter’) ) {

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.