-
AuthorPosts
-
April 3, 2017 at 3:33 pm #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,
April 4, 2017 at 7:34 am #771557Hey Luc,
Could you post a link to the page in question so that we can take a closer look please?
Best regards,
RikardApril 4, 2017 at 4:41 pm #771855See 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.jpgApril 6, 2017 at 6:43 am #772967Hey!
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,
JohnApril 6, 2017 at 9:41 am #773048Thanks 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
April 7, 2017 at 7:20 am #773723Hi,
Please try this instead:
function my_full_size( $config ) { $config['size'] = 'full'; return $config; } add_filter('avf_aviaccordion_config', 'my_full_size');
Best regards,
RikardApril 7, 2017 at 8:45 am #773769Hi 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!
April 8, 2017 at 12:17 pm #774462Hi 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,
VictoriaApril 10, 2017 at 1:07 pm #775434Hello,
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!
April 13, 2017 at 8:37 pm #777510Hi 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,
VictoriaApril 14, 2017 at 9:12 am #777719Thanks Victoria,
Sadly this does not work. I don’t see the slideshow at all now. The error is gone…
Thanks for your assistance!
April 14, 2017 at 8:06 pm #778039Hi 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,
VictoriaApril 18, 2017 at 8:49 am #779125Hello 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.
April 19, 2017 at 6:22 am #779782Hi,
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,
IsmaelApril 19, 2017 at 3:54 pm #780030Hello 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!
April 20, 2017 at 6:14 am #780311Hi!
Yes, you should remove @victoria’s code then leave the filter. Post the FTP details here so that we can check it thoroughly.
Cheers!
IsmaelApril 20, 2017 at 2:04 pm #780531Hello 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!!
April 21, 2017 at 7:13 am #781000Hey!
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,
IsmaelApril 21, 2017 at 12:05 pm #781124Hello 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!April 22, 2017 at 9:23 am #781615 -
AuthorPosts
- The topic ‘Retina displays macbook pro’ is closed to new replies.