Home › Forums › Support › How can I re-style the blog page This topic has 13 replies, 3 voices, and was last updated 3 years, 8 months ago by David. Viewing 14 posts - 1 through 14 (of 14 total) Author Posts July 30, 2020 at 10:32 am #1382130 Tesco I’m using a child theme and I would like to re-style the blog template. Is this possible via Hooks and Filters? If so, how? July 30, 2020 at 10:49 am #1382163 LeoStaff Customer Support Hi there, What would you like to achieve specifically? July 30, 2020 at 10:57 am #1382176 Tesco Hi Leo, I’m trying to re-style the blog page by adding two columns (33,66) and adding the featured image on the left and the description on the right. Also, make it available the “read more” button just below the description… July 30, 2020 at 10:58 am #1382177 LeoStaff Customer Support Might be able to use CSS for that. Something like Marketer? http://gpsites.co/marketer/ July 30, 2020 at 11:00 am #1382180 Tesco Bingo! That’s the template I had in mind… How can I achieve that? July 30, 2020 at 5:15 pm #1382428 LeoStaff Customer Support So try setting the featured image location to below title: https://docs.generatepress.com/article/adjusting-the-featured-images/ Then resize the image width to something like 300px. That should be it ๐ August 3, 2020 at 7:13 am #1385680 Tesco Awesome, thanks! August 3, 2020 at 9:02 am #1385972 LeoStaff Customer Support No problem ๐ August 6, 2020 at 4:23 am #1389282 Tesco Sorry to re-open this but it might be related… Is there any way to add a class to the images on the blog page? August 6, 2020 at 5:49 am #1389349 DavidStaff Customer Support Hi there, what specifically do you want to do ? As it may be possible without adding a new class. Let me know August 6, 2020 at 7:30 am #1389441 Tesco The solution I found was to add a custom style to the classes like so: .resize-featured-image .post-image img { my style here } And that do the job… but it would be great if I can add a style via some kind of filter OR, maybe you can show me another way (I would be grateful…). Thanks, again! August 6, 2020 at 8:08 am #1389642 DavidStaff Customer Support That is a perfectly good way to do it. If you must add a class to the archive featured image you can use this PHP Snippet add_filter( 'wp_get_attachment_image_attributes', function( $attr, $attachment ) { if ( ! is_single() && $attachment->ID === get_post_thumbnail_id() ) { $attr['class'] .= ' your-class'; } return $attr; }, 10, 2 ); August 6, 2020 at 10:08 am #1389832 Tesco Awesome, once again! Thanks! August 6, 2020 at 12:50 pm #1390112 DavidStaff Customer Support Glad to be of help Author Posts Viewing 14 posts - 1 through 14 (of 14 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In