Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #861284

    Hey 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Best regards,
    John Torvik

    #861361

    Sure, 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 bar

    I also tried clearing the cache from my caching plugin and normal things and still does not work
    any help much appreciated, thank you
    David

    #862013

    Hi,

    Can you post a login link, please?

    Best regards,
    Victoria

    #862051

    Oh sorry about that, url in private section

    #862200

    I 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 thanks

    #862547

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Regenerate sidebar widget thumbnails not working’ is closed to new replies.