-
AuthorPosts
-
September 2, 2013 at 4:27 pm #28855
I want to reduce the size of the featured image on blog posts. I have looked through the forum and it is usually recommended that you find a piece of code similar to the following in the functions.php file and edit that.
avia_config = array(‘width’=>1500, ‘height’=>430 );
I have looked through this file using the ctl+f function and I have found nothing like it. Please help!
Thanks,
Evan
September 2, 2013 at 4:32 pm #138868Hi Evan,
Be sure you are using the latest version of Enfold, then open this file: /wp-content/themes/enfold/functions.php
The settings you want to change starts in line 78:
$avia_config = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
$avia_config = array('width'=>180, 'height'=>180); // small image for blogs
$avia_config = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
$avia_config = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider
$avia_config = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns
$avia_config = array('width'=>710, 'height'=>575 ); // images for portfolio entries (2,3 column)
$avia_config = array('width'=>710, 'height'=>270); // big images for blog and page entries
$avia_config= array('width'=>1030, 'height'=>360 ); // images for fullsize pages and fullsize slider
Regards,
Josue
September 3, 2013 at 8:49 am #138869Hi Josue,
Thanks for pointing me in the right direction. I changed the ‘square’ setting which does reduce the image size, but the result was that the image just occupies the top left corner of the box that was its previous size. The remaining area where the featured image was stays grey and it doesn’t allow the text to be wider which what I want to happen.
Is there a change elsewhere that can reduce the size of the featured image on blog posts?
Thanks
Evan
September 3, 2013 at 9:33 am #138870Hi Evan,
Please add following code to Quick CSS
.single-post .single-small.with-slider .small-preview { width: 100px; height: 100px; }
Width and height should be the same as you defined in functions.php file
Regards,
Yigit
September 3, 2013 at 9:52 am #138871Thanks Yigit, problem solved!
-
AuthorPosts
- The topic ‘Featured Image Size’ is closed to new replies.