Display featured image to match new width
-
Hi all,
I am new to WordPress and have been following instructions on child theming and is currently stuck with overriding functions.
In my /penscratch-child/functions.php, I have copied the penscratch_setup function and removed the if/endif condition as indicated here https://zooninidev.com/child-theming/#/52.
I have also modified values for the featured image size so that it matches the new max-width I have set via style.css.
add_image_size( 'penscratch-featured', '1200', '600', true );
I understand that I could change the width via CSS but I would like to avoid cropping the image before modifying the display width via CSS.
If this particular function cannot be overridden, how do I go about achieving displaying an uncropped\unresized featured image?
- The topic ‘Display featured image to match new width’ is closed to new replies.