Tagged: child theme, imagesize
I have added two custom image formats in the functions.php of my Enfold child theme:
add_image_size(‘wik-ftc_slider’, 1600, 470, true);
add_image_size(‘wik-ftc_entry_with_sidebar’, 900, 471, true);
I use a plugin to be able to manually make a cutout of my image to this size.
How can I use the second format in a ‘Single Post With Big Preview Image’.
Which file from the Enfold theme folder can I copy to my child theme folder and then edit to use
the_post_thumbnail(‘wik-ftc_entry_with_sidebar’)
I guess I have solved it myself :P
I have copied loop_index.php from enfold/includes to the {chiltheme-folder}/includes
and changed line 43 to
$size = strpos($blog_style, 'big') ? (strpos($current_post['post_layout'], 'sidebar') !== false) ? 'wik-ftc_entry_with_sidebar' : 'entry_without_sidebar' : 'square';
Hey!
Glad you got it short out.
Please do let us know if you need anything else, we will be more than happy to help.
Best regards,
Basilis