Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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!

    #529041

    Hey Uri_Berry,

    What size would you like to set it to?

    Regards,
    Rikard

    #549290

    Hey, 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!

    #549312

    Hey!

    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,
    Yigit

    #549881

    Thanks 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

    #549901

    Hi!

    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,
    Yigit

    #550289

    Thanks Yigit works great!!!

    Now I would also like to cancel the link & lightbox on these images (on single blog pages),
    is it possible?

    #550343

    Shalom!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .single .big-preview.single-big {
        pointer-events: none;
    }

    Regards,
    Yigit

    #550369

    Thanks so much!
    Toda Raba ;-)

    #550373

    Bevakasha :)

    Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom pixel value for preview image’ is closed to new replies.