Latest posts Page image scaling

Dedicated support forum for CloudHost elegant bosting WordPress theme which is perfect for your business and hosting websites. Here you can ask questions and discuss with other theme users.
GK User
Fri Dec 05, 2014 2:07 pm
Hi,

I would like to change the scaling for the images of each post that appear in a "Latest post" kind of page ( could it be this class: attachment-post-thumbnail wp-post-image ? ) I can´t seem to find it ..

Example: http://hopandup.com/en/latest-posts/

Thanks in advance.
User avatar
Senior Boarder

GK User
Fri Dec 05, 2014 11:45 pm
Hi,

Ok, but what exactly do you want to change? Do you want to remove this effect? It's "article figure.featured-image:hover img" selector (on hover)
User avatar
Moderator

GK User
Sun Dec 07, 2014 9:50 pm
Hi,
Not exactly, what I would like to avoid is the general upscaling of all featured images to suit the layout ...
Thanks.
User avatar
Senior Boarder

GK User
Mon Dec 08, 2014 12:23 am
Add the following code into the theme’s css/override.css file (make sure to enable the “Use the override.css file” option in Template options > Advanced in the WordPress backend)

Code: Select all
article figure.featured-image:hover img {
   -webkit-transform: scale(1.0);
   -moz-transform: scale(1.0);
   -ms-transform: scale(1.0);
   -o-transform: scale(1.0);
   transform: scale(1.0);
}
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.