-
AuthorPosts
-
April 25, 2016 at 4:42 pm #621469
HI, sorry, you closed the ticket before I was able to see that the problem was not absolutely solved. The post is #612440.
I was able to add the code you told me and to replace the line. It helped to remove instagram images, but now I still see 2 extra pictures from the same page (“UPF50+” and “wet-dry”). Also the light box acts weird. I can see the main picture twice.
Please see the link in private content and advice.
April 26, 2016 at 7:57 pm #622486I had to remove the suggested code from functions.php file as it destroed all my slides. No slides were working after I use this code:
function wp_change_aviajs() {
wp_dequeue_script( ‘avia-default’ );
wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
}
add_action( ‘wp_print_scripts’, ‘wp_change_aviajs’, 100 );Still have the problem with the pictures…
April 29, 2016 at 11:00 am #624231Hi,
Thank you for using Enfold.
Did you create a “js” folder inside the child theme? And move the avia.js file inside? The code moved the script path.
Best regards,
IsmaelApril 29, 2016 at 4:33 pm #624627Sorry, I didn’t understand if I had to create or I should not create the js folder.
first I just created a “js” folder and moved there avia.js file, in which I made changes that you told me. it didn’t work.
then I moved the favia.js file into the root child theme folder but there were no changes.so I tried both ways. even when I rename the avia.js file in child theme it doesn’t help and I still can see all the pictures from instagram and from the website in the product pictures.
Please see ftp access and website access in private data. I hope you can help soon as i’t already time to launch the website.May 3, 2016 at 3:11 am #626115Hi,
Add the code in the functions.php file then create a folder called “js” inside the child theme folder. Add the modified avia.js file inside the js folder. Remove browser cache or hard refresh the page afterwards.
Best regards,
IsmaelMay 5, 2016 at 6:21 am #627622unfortunatelly this doesn’t work for me.
I did all steps as you said and I am getting an error when I add the code to functions.php
Parse error: syntax error, unexpected ‘default’ (T_DEFAULT) in /home/content/p3pnexwpnas13_data01/96/3196196/html/wp-content/themes/enfold-child/functions.php on line 61
Line 61 is: wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
May 9, 2016 at 2:27 am #628950Hi,
Sorry for the delay. We added the code and we didn’t get the error. http://1ac.33e.myftpupload.com/product/rainbow-rashguard/
Best regards,
IsmaelMay 9, 2016 at 6:50 am #629020Thank you. I see it works, but adding this code destroys the variation tab on my product page backend. its all time loading and doesn’t work when the code is enabled.
I am not sure if it has anything to do with this problem https://kriesi.at/support/topic/price-on-the-productpage-doesnt-show-up/. Please check.
Thank you
May 11, 2016 at 3:45 am #630337Hi,
Please try to add the code provided here. https://kriesi.at/support/topic/having-problems-after-updating-to-wordpress-4-5-please-read-this-first/
It’s possibly a jquery issue.
The other thread has nothing to do with the current issue.UPDATE: Yes, you’re probably. It has something to do with the other thread.
Best regards,
IsmaelMay 11, 2016 at 8:55 pm #630953I just have added that code – but no changes by now.
Could you please combine these two treads, so we don’t jump here and there for two problems with the same roots?
May 13, 2016 at 8:53 am #631918Hi,
We provided a reply here: https://kriesi.at/support/topic/price-on-the-productpage-doesnt-show-up/#post-631901
Unfortunately, we can’t combine threads. Let’s close this one then continue on the previous thread. Would that be OK with you?
Best regards,
IsmaelMay 14, 2016 at 2:49 am #632271yes, sure. Thanks
May 16, 2016 at 5:27 am #632710 -
AuthorPosts
- The topic ‘Product lightbox shows extra pictures’ is closed to new replies.