Tagged: Blog
-
AuthorPosts
-
January 6, 2015 at 5:31 pm #375741
Hi, sorry to bring up an old thread. I’ve changed the following to try and get the blog images to crop from the top, but I can’t find the one that selects the images on the main blog page here.
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684, array(top, center) ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321, array(top, center)); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423, array(top, center)); // images for fullsize pages and fullsize slider
January 6, 2015 at 10:41 pm #375879Hi alanboyle5355!
It’s the “entry_without_sidebar”.
Best regards,
ElliottJanuary 7, 2015 at 11:29 am #376060Hi Elliott,
That’s what I thought but as you can see it’s been changed to Top and I’ve regenerated all images, but it still looks the same.
January 8, 2015 at 4:56 am #376618Hey!
Please refer to the add_image_size function’s crop attribute: http://codex.wordpress.org/Function_Reference/add_image_size
When setting a crop position, the first value in the array is the x axis crop position, the second is the y axis crop position.
x_crop_position accepts ‘left’ ‘center’, or ‘right’.
y_crop_position accepts ‘top’, ‘center’, or ‘bottom’.This code:
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321, array(top, center));
Should be
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321, array(center, top));
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.