Don’t understand how to set specific size for thumbnails on theme

[ad_1]

Here is how the theme looks so far below, it seems the thumbnails are being loaded in with the original size they were uploaded with to the media library.

So first thing I did was put this in the child theme functions file:

function thumbnail_posts () {
add_theme_support(‘post-thumbnails’);
set_post_thumbnail_size(250, 250, false);
}

add_action(‘after_setup_theme’, ‘thumbnail_posts’);

and then I checked out the file in the main theme where the thumbnail posts and it’s this code:

<figure class=”post-thumbnail<?php if ($thumbnail_caption) : ?> has-caption<?php endif; ?>”>
<a class=”post-thumbnail-link ” href=”<?php esc_url(the_permalink()); ?>” aria-hidden=”true”>
<?php the_post_thumbnail(‘post-thumbnail’, array(‘class’ => ‘default-thumbnail’, ‘alt’ => get_the_title())); ?>
</a>
<?php
if ($thumbnail_caption && !is_search()) {
printf(‘<figcaption class=”wp-caption-text post-thumbnail-caption”>%s</figcaption>’, $thumbnail_caption);}
?>
</figure>

As you can see the\_post\_thumbnail functions is not altering the size at all, so it should be posting at 250x250px dimensions. What am I missing? The files for main theme are here.
[https://github.com/xVicissitudex/WordPress-Themes/blob/94066711fe6d105f8412613a5c69853eab094595/unblock/inc/template-tags.php#L266])

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer