Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #943736

    Hello

    I am trying to find how to alter the 16:9 aspect ration to a different one, just to trigger the double height or double width, since most of my photos are almost there.

    I only want to change the trigger, not the display.

    Please advise

    Thanks
    Mike

    #944440

    Hey kime,

    Thank you for using Enfold.

    I’m not really sure what you’re trying to do here. Could you provide a link to the related pages? Or post a screenshot on imgur or dropbox.

    Best regards,
    Ismael

    #944486

    Hello Ismael

    This is my description:
    When selecting a masonry with perfect option all images that have 16:9 ratio get double space (vertically or horizontally), So if I have a picture of 1600px wide and 800px height it gets double width. But most of my pictures are 1600X1100, so they do not get double width. I would like to change this trigger to 16:11 instead of 16:9 so I do not have to alter my images using photoshop.

    Hope this clears my problem
    Thanks in advance,
    Mike

    #945245

    Hi,

    Thank you for the info.

    Use this filter to change the auto_ratio value.

    add_filter('avf_masonry_settings', 'avf_masonry_settings_mod');
    function avf_masonry_settings_mod($settings) {
    	$settings['auto_ratio'] = 1.4;
    	return $settings;
    }

    Default “auto_ratio” value is 1.7.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.