Hi for example your service page's thumbnail size. http://yaveo.vet/service/rosa-de-bengala/
You can create a new thumbnail size for your Theme and use that in Single service pages. Please follow instructions.
Edit your WordPress theme files, and find the file in wp-content folder go to Themes and inside veterinary-care >> lib >> core-functions.php in this file find the lines i mentioned below.
/*********************
Custom Thumb
Sizes
*********************/
if(!function_exists('wc_custom_thumb_sizes')) {
function wc_custom_thumb_sizes() {
add_image_size('wc-blog-page', 870, 300, true ); //THumbnail For Blog/Single Post
add_image_size('wc-blog-home', 570, 290, true ); //THumbnail For Blog/Single Post
add_image_size('wc-services-grid', 400, 260, true ); //THumbnail For Services Carousel Post
add_image_size('wc-doctor-thumb', 370, 370, true ); //THumbnail For Doctors
add_image_size('wc-testimonial-thumb', 150, 150, true ); //THumbnail For Testimonials
}//Function Ends
}
These are the default thumbnails theme is using now you have to create a new thumbnail size which later you can use in your single veterinary service page. So let's assume you name new thumbnail size wc-single-service-thumb and set its size 800, 400, now the function will become like this.
/*********************
Custom Thumb
Sizes
*********************/
if(!function_exists('wc_custom_thumb_sizes')) {
function wc_custom_thumb_sizes() {
add_image_size('wc-blog-page', 870, 300, true ); //THumbnail For Blog/Single Post
add_image_size('wc-blog-home', 570, 290, true ); //THumbnail For Blog/Single Post
add_image_size('wc-services-grid', 400, 260, true ); //THumbnail For Services Carousel Post
add_image_size('wc-doctor-thumb', 370, 370, true ); //THumbnail For Doctors
add_image_size('wc-testimonial-thumb', 150, 150, true ); //THumbnail For Testimonials
add_image_size('wc-single-service-thumb', 800, 300, true); //New thumb size for services page.
}//Function Ends
}
Please change values 800 is width and 300 is height, if you change the existing sizes that can create problem for you in view of different pages like single post etc. Now you have created your new thumbnail size kindly follow instructions below to update your thumbnail size in single service page.
Please go to directory /veterinary-care/template-parts/postType and open file >> single-service.php
Find the following line and change that to suggested line.
<?php the_post_thumbnail('wc-blog-page', array( 'class' => 'thumbnail' )); ?>
Replace it with
<?php the_post_thumbnail('wc-single-service-thumb', array( 'class' => 'thumbnail' )); ?>
Now you have successfuly created new thumbnail size and also added it on single service page. Now time to regenerate your thumbnails in WordPress
Please install this plugin >> https://wordpress.org/plugins/regenerate-thumbnails/ and regenerate your thumbnails once you are done new thumbnail size will be visible in single service page.
Thanks.