BuddyDev

Search

[Resolved] How to Increase Size of Photo Thumbnails in Activity

  • Participant
    Level: Enlightened
    Posts: 29
    Simon on #5457

    Hello,

    I should know this but am struggling with it. I want the image thumbnails in activity to be larger. Right now they are 200×200. I have increased the size using CSS but as the thumbnail is 200×200 it means that the image that is displayed on the page becomes pixelated. Is there a way to show the original size on the activity page rather than a 200×200 thumbnail?

    Thanks,

    Simon

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2449
    Ravi on #5458

    Hello Simon,

    yes it can be easily doable. You have to override the activity grid-photo template in your active theme. Please follow the following step

    Step 1. Copy the template file from plugin templates directory

    
    mediapress/templates/mediapress/default/buddypress/activity/views/grid-photo.php
    
    

    and paste this file to your active theme directory

    
    twentysixteen/mediapress/default/buddypress/activity/views/grid-photo.php
    
    

    and on line no. 21 replace the image size like

    
    mpp_media_src( 'original' )
    

    Please make sure directory structure should be same. Let me know if it works or not.

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 29
    Simon on #5462

    Hello Brajesh,

    Yes, that worked perfectly!

    Thank you once again for your invaluable help!

    Simon

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2449
    Ravi on #5463

    Hi Simon,

    Thank you for this acknowledgement. I am glad i could help.

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 29
    Simon on #5464

    Hello Ravi,

    Sorry I called you Brajesh in my last post! I’m so used to Brajesh answering my questions I automatically thought you were Brajesh!

    Thanks again,

    Simon

You must be logged in to reply to this topic.

This topic is: resolved