-
AuthorPosts
-
November 2, 2015 at 7:15 pm #528753
Hey there,
I’m trying to create a custom blog and would very much like to set a custom pixel value for the preview image…
something different than “gallery / magazine / masonry” etc.Can I do this?
I know this option exists on standard twenty fifteen theme, Thanks a lot!November 3, 2015 at 9:03 am #529041December 8, 2015 at 10:42 pm #549290Hey, sorry for the late reply,
I would like to change the size of the preview image on a single blog page –
something like:.big-preview a {
max-height: 360px;
}but how do I align the image center-center?
And would also like to cancel the lightbox link on these images…
Thanks!
December 8, 2015 at 11:44 pm #549312Hey!
Features image in example post is already centered. If you would like to change the size of featured images, please go to Appearance > Editor and open Functions.php file and find
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
and change it as needed then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
YigitDecember 9, 2015 at 5:19 pm #549881Thanks for your quick reply,
I did what you told me to do, only pasting this line:
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1260, ‘height’=>360 );into my enfold-child functions.php, and then I used the plugin for regenerating the thumbnails
It does not seem to make a change on a single blog page – link attached.
and also, how do I cancel the link and lightbox on this image?
Thanks
December 9, 2015 at 5:46 pm #549901Hi!
Please change the code you added to functions.php file of your child theme with following one
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['entry_without_sidebar'] = array('width'=>1260, 'height'=>360); return $size; }
then regenerate thumbnails
Best regards,
YigitDecember 10, 2015 at 12:07 pm #550289Thanks Yigit works great!!!
Now I would also like to cancel the link & lightbox on these images (on single blog pages),
is it possible?December 10, 2015 at 1:25 pm #550343Shalom!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.single .big-preview.single-big { pointer-events: none; }
Regards,
YigitDecember 10, 2015 at 1:52 pm #550369Thanks so much!
Toda Raba ;-)December 10, 2015 at 2:01 pm #550373 -
AuthorPosts
- The topic ‘Custom pixel value for preview image’ is closed to new replies.