BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Posted links use cropped image
- This topic has 3 replies, 2 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
March 17, 2016 at 2:44 pm #63690@aaronkineI dont want BB Wall to use the cropped image for the preview in Activity Stream
Example: I pasted this link –> http://www.nptechforgood.com/2016/01/27/11-must-know-stats-about-how-ngos-worldwide-use-internet-technology
The Preview window (before i hit POST) uses the correct Preview Image (not cropped version). But when I hit POST
Its using the cropped versionin the Activity Stream (600×250) –> http://www.nptechforgood.com/wp-content/uploads/2016/01/How-NGOs-Use-Internet-Technology-Facebook-600×250.jpgI want it to use this one (same one used in the Preview) –> http://www.nptechforgood.com/wp-content/uploads/2016/01/How-NGOs-Use-Internet-Technology-Facebook.jpg
Answers
March 18, 2016 at 12:29 am #63726@
AnonymousHi @aaronkine,you can use following code in child theme functions.php
function activity_thumb_setup() { add_image_size( 'bbwall-url-preview-thumb', 200, 100 ); } add_action( 'after_setup_theme', 'activity_thumb_setup', 11 );
It will remove the hard crop option.
Regards
Varun DubeyApril 1, 2016 at 12:52 am #66415@aaronkinethat code did not work. I changed the 200, 100 but the same cropped image shows up.
function activity_thumb_setup() { add_image_size( 'bbwall-url-preview-thumb', 600, 400 ); } add_action( 'after_setup_theme', 'activity_thumb_setup', 11 );
April 2, 2016 at 12:34 pm #66629@
AnonymousHi @aaronkine,
Please try following codes, It should work.function activity_thumb_setup() { remove_image_size('bbwall-url-preview-thumb'); add_image_size( 'bbwall-url-preview-thumb', 200, 100 ); } add_action( 'init', 'activity_thumb_setup' );
Regards
Varun Dubey
- The question ‘Posted links use cropped image’ is closed to new replies.