-
AuthorPosts
-
October 7, 2017 at 1:05 am #861215
Hi I want to make the thumbnail images in the “recent projects” widget in the sidebar larger, so am following another post on the subject. I think I’ve done everything correctly but the thumbnails are just not being regenerated at the new size?
In my child themes functions.php I have added
add_action('after_setup_theme','avia_change_image_sizes'); function avia_change_image_sizes(){ global $avia_config; $avia_config['imgSize']['widget'] = array('width'=>210, 'height'=>122); // small preview pics eg sidebar news }
Then in my child’s styles.css I have added
#top .image_size_widget .news-thumb { width: 210px; height: 122px; margin-right: 30% } #top .image_size_widget .news-thumb img { width: 200px; height: 112px; } strong.news-headline { font-size: 14px; } span.news-time { display: none!important; } .news-headline { overflow: visible; margin-left: 17%; font-size: 14px; }
Then as advised I’m using the “Regenerate Thumbnails” plugin
The thumbnails do not get regenerated at the larger size, they stay at the default size so not sure what I’m doing wrong?
I’ve tried turning of the imagify image compression plugin but still no luck.Many thanks
October 7, 2017 at 5:15 am #861284Hey David,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Best regards,
John TorvikOctober 7, 2017 at 1:08 pm #861361Sure, I created a temporary admin user for you, details in the private content section
also link to a blog post to see it in the side barI also tried clearing the cache from my caching plugin and normal things and still does not work
any help much appreciated, thank you
DavidOctober 9, 2017 at 5:58 pm #862013Hi,
Can you post a login link, please?
Best regards,
VictoriaOctober 9, 2017 at 7:26 pm #862051Oh sorry about that, url in private section
October 10, 2017 at 1:13 am #862200I found on another post you can use the portfolio shortcode in a sidebar text widget which has worked quite well!
…but I would still like to know why the regenerate thumbnail isn’t working for future reference, many thanksOctober 10, 2017 at 5:06 pm #862547Hi,
Glad you figured it out!
For future reference, you could use the code as following
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['masonry'] = array('width'=>210, 'height'=>122); return $size; }
Let us know if you have any other questions or issues!
Best regards,
Yigit -
AuthorPosts
- The topic ‘Regenerate sidebar widget thumbnails not working’ is closed to new replies.