Featured Image Size & Alignment
-
Hello,
I have two questions regarding “Featured Image”. Sorry, to keep bothering.
1) How to change the alignment of “Featured Images” in the main homepage from left to center? Currently all the featured images of my posts are shown on the left. I need to align them to be in the center. Which page (style.css or functions.php) should I edit? What is the code that I should I edit?
2) How to set a one size for all the featured images? I have tried “Regenerate Thumbnails” and “AJAX Rebuild Thumbnails” plugins but, the Featured Images on my homepages are not uniformed. Some are way too large and some are way too small.
Example, I used this codes in functions.php in my previous theme:
// Thumbnail sizes
add_image_size( ‘thumb-small’, 160, 160, true );
add_image_size( ‘thumb-medium’, 520, 245, true );
add_image_size( ‘thumb-large’, 720, 340, true );But, these codes are not working in GeneratePress. How do I go about it?
Any help, much appreciated.
Thank you.
- The topic ‘Featured Image Size & Alignment’ is closed to new replies.