Tagged: featured image, size
Hi,
I looked over the support forum and found few different ways to re-size the featured in a blog post, yet none are working for me.
I have a child theme set up with a custom functions.php
I’d like to resize the featured image to appear 710×420 with no lightbox…is this do-able?
My posts are setup as “standard post”, Layout = Right Sidebar, Sidebar Setting = Custom Sidebar
Thanks
Hey Snerp!
Thank you for using the theme.
Please add this on the child theme’s functions.php:
function avia_change_image_size_array() {
global $avia_config;
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>710, 'height'=>420); // big images for blog and page entries
avia_backend_add_thumbnail_size($avia_config);
}
add_action( 'init', 'avia_change_image_size_array', 1);
Upload the image again or regenerate the thumbnails using this plugin: http://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
Ismael
Ok thanks that worked great, although the image still showing as lightbox image. Any way to remove the lightbox function?
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
div.big-preview.multi-big {
pointer-events: none!important;
}
Best regards,
Yigit
Hi Yigit,
I placed that code in and nothing changed, the images still appear with the lightbox effect,
Hi!
Can you post the link to your blog page please?
Have you tried flushing browser cache?
Regards,
Yigit
Thanks,
I fixed it by using this”
#top.single-post .big-preview.single-big a,
#top.single-post .small-preview {
pointer-events: none;
cursor: default;
}