Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #771182

    Hello Kriesi,

    Sorry to bother you. I love the theme but have a question about retina displays. Even when I upload images twice the size needed they do not look crisp on a retina display from a MacBook Pro.

    I even installed the WP Retina 2X plugin but this does not the trick. Any ideas?

    Thanks in advance,

    #771557

    Hey Luc,

    Could you post a link to the page in question so that we can take a closer look please?

    Best regards,
    Rikard

    #771855

    See details in the private content. It is now a staging area.

    Please have a look at the sliders on home. the uploaded images are twice the size and if I look at the original over here, it’s crisp:
    http://rational.mercx.org/wp-content/uploads/2017/03/Slide-horeca.jpg

    #772967

    Hey!

    To fix your problem, just add this custom function at your functions.php (from the Child Theme)

    
    function my_full_size( $config ) {
    	$config['size'] = 'full';
    	return $config;
    }
    add_filter('avf_aviaccordion_config', 'my_full_size')
    

    P.S: If you aren`t using the child theme, follow this tutorial to have one: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Let me know if it helps!

    Regards,
    John

    #773048

    Thanks John but this does not work:

    Instead of a slider I get this error:

    Warning: Division by zero in /public/sites/rational.mercx.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 468

    #773723

    Hi,

    Please try this instead:

    function my_full_size( $config ) {
    	$config['size'] = 'full';
    	return $config;
    }
    add_filter('avf_aviaccordion_config', 'my_full_size');

    Best regards,
    Rikard

    #773769

    Hi Rikard,
    Already tried that because my install collapsed due to an error on line 15 of functions.php.
    After that I added the ; but still the error.

    Have a look on my install if you want to.

    Thanks!

    #774462

    Hi lmercx,

    Could you go and edit you child theme functions.php via ftp or cPanel, and restore the code Rikard gave you. The editor gives the same error all the time, no matter what you change. Need to investigate further, but cannot do it with the site down.

    Best regards,
    Victoria

    #775434

    Hello,

    I have restored the original code from Rikard. On the place of the slider is now:

    Warning: Division by zero in /public/sites/rational.mercx.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 468

    Thanks in advance!

    #777510

    Hi lmercx,

    Try putting this in that file on line 466:

    
    if ($width == 0) $width = 1;
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #777719

    Thanks Victoria,

    Sadly this does not work. I don’t see the slideshow at all now. The error is gone…

    Thanks for your assistance!

    #778039

    Hi lmercx,

    Let’s try to remove the code given before (the my_full_size function) and try a css solution from this thread.

    Best regards,
    Victoria

    #779125

    Hello Victoria,

    Thanks for your solution. Sadly this does not work. My guess is that I cannot specify in the slider to use it’s original size. I have placed an image in a 1/2 column under the slider and I’m able to select the original size image for this. This image is sharp on Retina screens.

    It seems to me as I only can select cropped sizes in the accordeon slider this module uses the resized images from wordpress and for retina display I need images double the size…

    Does this point us in the right direction? Thanks for your assistance.

    #779782

    Hi,

    Already tried that because my install collapsed due to an error on line 15 of functions.php.
    After that I added the ; but still the error.

    Please copy the filter that we provided above directly from this forum and not from your email.

    function my_full_size( $config ) {
    	$config['size'] = 'full';
    	return $config;
    }
    add_filter('avf_aviaccordion_config', 'my_full_size');

    Or post the FTP details here so that we can add it in the appropriate file.

    Best regards,
    Ismael

    #780030

    Hello Ismael,

    Placed the code again (from the forum) but I see no slider…
    I still have the Victoria css code (#778039) in place, should I remove this? Also the other victoria code is in place (#777510).

    Thanks for your help!

    #780311

    Hi!

    Yes, you should remove @victoria’s code then leave the filter. Post the FTP details here so that we can check it thoroughly.

    Cheers!
    Ismael

    #780531

    Hello Ismael,
    I have removed the styles from Victoria and also removed the line in /themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php like she told me in post #777510 from this thread.

    It now says the mentioned error on the homepage. Please find my FTP details below.

    Thanks!!

    #781000

    Hey!

    We would like to apologize because it’s our mistaken. The “full” thumbnail doesn’t have an actual width and height value so the script fails to calculate the default height of the slider. Please remove the filter then add this code instead.

    $avia_config['imgSize']['custom']	= array('width'=>3000,  'height'=>3000, 'crop' => false);
    function avf_aviaccordion_config_mod( $config ) {
    	$config['size'] = 'custom';
    	return $config;
    }
    add_filter('avf_aviaccordion_config', 'avf_aviaccordion_config_mod');

    Regenerate the thumbnails by using the following plugin. https://wordpress.org/plugins/force-regenerate-thumbnails/

    Regards,
    Ismael

    #781124

    Hello Ismael,
    Yes, SOLVED!
    I now have functional sliders but my image was total out of proportion. I have now set the dimensions in your script to the size I need en create an image that is double the size in Photoshop. Now I have a beautiful Retina slider.
    Many Thanks Ismael!

    #781615

    Hi!

    Great! Glad that you figured out the correct size for retina display. :)

    Cheers!
    Ismael

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Retina displays macbook pro’ is closed to new replies.