This topic has 8 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Eva Kemp
Hi! we are trying to enable second image Hover on Featured Products, we set Swap at Theme Options – Product Page, when we test it goes to white when hover over product image, is there any thing wrong with this option?
This is happening even after adding the second image in the Product configuration down at the Upload image for hover effect, it doesn´t work.
Hello,
Please show a product page where you added hover image and provide FTP credentials.
Regards,
Eva Kemp.
This is the site: http://www.urbanrock.com.co/
In this image you can see the second Featured product at Home page shows the white i`m telling you instead of secondary image:
http://www.urbanrock.com.co/wp-content/uploads/2016/12/swap-image.jpg
In private there is the access to admin.
Hello,
We also need FTP login data.
Please provide it as well.
Thank you.
Regards,
Eva Kemp.
Sure in private i write the access via FTP.
Hello,
The problem was caused by your hosting settings.
Image is loaded from the path that is defined in “DOCUMENT_ROOT” variable. On a server where your site is located the path for DOCUMENT_ROOT is written:
_SERVER[“DOCUMENT_ROOT”] /var/chroot/home/content/13/9948413/html
but your site is located in /var/chroot/home/content/13/9948413/html/urbanrock1 and this path is written for variable “REAL_DOCUMENT_ROOT”.
So to fix the issue I’ve changed the code $file_path = $_SERVER['DOCUMENT_ROOT'] . $file_path['path'];
to $file_path = $_SERVER['REAL_DOCUMENT_ROOT'] . $file_path['path'];
on line 124 in the file wp-content/themes/royal/framework/images.php.
Please check image now.
Regards,
Eva Kemp.
Geat!
Eva thank you so much for this solution.
Regards.
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Error with Swap Image – Featured Products’' has been successfully resolved, and the topic is now closed for further responses