-
AuthorPosts
-
March 9, 2018 at 10:13 am #924370
Hello
You recently helped me with an issue with the Color section videos. I needed them to automatically return to the home page after they played. Please see ticket sting #918905
I have now noticed that everything works perfectly apart from the home page video also return to the homepage after it ends. That means that the anyone who is looking at the website gets interrupted and returned to beginning.
Is it possible to make the homepage video just repeat on a loop with out returning to the start and the other three video pages stay as they are and return to the home page after playing? The admin password and URL are below. The additional code you asked me to add are under
Thanks,
IainMarch 9, 2018 at 10:33 pm #924775Hey iainpdavies,
Convert the function you added from Ismael to the following
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ if (!is_home()) { ?> <script type="text/javascript"> (function($) { $('.avia_video').on('av-mediajs-ended', function() { window.location.href = 'http://baydev.featherstonemedia.co.uk'; }); })(jQuery); </script> <?php } }
and let us know if that would work properly
Best regards,
BasilisMarch 10, 2018 at 9:12 am #924876Hello
When I add the code to the functions php it gives the error message below?
Your PHP code changes were rolled back due to an error on line 41 of file wp-content/themes/enfold-child/functions.php. Please fix and try saving again.
Cannot redeclare ava_custom_script() (previously declared in wp-content/themes/enfold-child/functions.php:26)
How do I fix that?
ThanksMarch 10, 2018 at 1:22 pm #924908Any update please?
March 11, 2018 at 6:54 am #925156Hi,
This means that two functions have the same name:
Cannot redeclare ava_custom_script() (previously declared in wp-content/themes/enfold-child/functions.php:26)
Did you replace the first code or did you add it again? Please try to replace it.
Best regards,
RikardMarch 11, 2018 at 11:06 am #925186Hello
I removed the original code that was a duplicate and it now saves ok but the homepage video still returns to the top of the page when it finishes.
I need the homepage video to repeat but not return to the top of the page when it starts again. If someone is halfway down the page when the video restarts then it should just stay in the same place. The other three videos should stay as they are and now return to the correct page.
The updated code works fine for returning the videos to the homepage but does not stop the homepage doing it?
Thanks,
IainMarch 12, 2018 at 1:06 pm #925490Hello Support
Would it be possible to have an update on this issue please?
Thanks,March 13, 2018 at 9:54 am #925976Hello is there an update on this please it has been two days since your last response. I know yo are busy but some help would be appreciated if possible?
March 13, 2018 at 9:36 pm #926259Hi,
That is not possible as there is no way to find / locate whee the screen is and to trigger it we are afraid.
If you need that you would have to hire someone to make it doen for you.Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.