-
AuthorPosts
-
February 25, 2018 at 10:27 am #917336
Hello
I have a full screen color section video playing an mp4 on three website pages. When each video end I would like it to automatically return back to the home page so visitors can continue viewing the site.
Is that possible?
Pages and login details below.Thank you.
IainFebruary 25, 2018 at 2:54 pm #917382Hey Iain,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 27, 2018 at 2:04 pm #918454Hi
Thanks for your reply. The reason I need to make the video automatically return to the home page is because the Page Option to not show the color section on mobile do not work. What I need to do is hide each of the color section videos on mobile devices using the page options. I then want to have another color section that only shows on mobile devices with a standard video in that can be played manually on mobile devices.
At the moment the color sections do not respond to the Page Option tick boxes at all. If you can help to get the Page Options functionality working I would be grateful.
Many thanks,
IainFebruary 28, 2018 at 10:20 am #918905Hi,
Thank you for the update.
Please add this script in the functions.php file.
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { $('.avia_video').on('av-mediajs-ended', function() { window.location.href = 'http://baydev.featherstonemedia.co.uk'; }); })(jQuery); </script> <?php }
Please note that this script is going to take effect every time a video ended. Please adjust the url as needed.
Best regards,
IsmaelFebruary 28, 2018 at 1:10 pm #919016Hello
Thanks for your help. I added the code to the functions PHP and it did not work. I get the error message below:Your PHP code changes were rolled back due to an error on line 30 of file wp-content/themes/enfold-child/functions.php. Please fix and try saving again.
syntax error, unexpected ‘function’ (T_FUNCTION)Thanks,
IainMarch 1, 2018 at 2:14 pm #919640Hello Guys
Would someone mind giving a response to string of messages in this ticket please?Its been a few days and I need to get the site finished.
Thanks,
IainMarch 1, 2018 at 4:40 pm #919741can you please post the whole syntax error – there must be a path behind – isn’t it ?
Fixing the “Parse error: syntax error, unexpected T_FUNCTION” Error
There are multiple ways in which you could fix the “Parse error: syntax error, unexpected T_FUNCTION” error. We’ll explore the different methods here, but first, let’s discuss the actual origin of these errors. Basically, the T_FUNCTION error appears whenever there’s some syntax errors within your plugin or theme files. It can either be a non-valid part of your code, or alternatively the plugin or theme is trying to use features of a more advanced PHP version than the one actually installed on your server.
what php Version is running on your system
March 1, 2018 at 9:04 pm #919887Hi,
We are waiting for your reply.
Thank you very much.
Best regards,
BasilisMarch 1, 2018 at 9:10 pm #919893Hi Sorry it’s been a busy day.
Current PHP Version is 5.6
Thanks
March 2, 2018 at 12:17 pm #920268Hello
Is there any update?
Thanks Iain
March 2, 2018 at 12:27 pm #920282Hi,
There’s an existing “ava_custom_script” function, hence the error. We adjusted the function name a bit.
Best regards,
IsmaelMarch 2, 2018 at 12:30 pm #920285So does it work now?
March 2, 2018 at 12:36 pm #920294I have just tested it and the videos do not return to the homepage. Could you let me have a proper update please I did not understand your last message?
Thanks
March 2, 2018 at 5:52 pm #920454Hello guys
Is there any movement on this issue? I am desperate to get the site finished and this is the only issue holding me up now.
Thanks,
iainMarch 4, 2018 at 9:09 pm #921152Hi,
Have you updated to the latest version we have shiped last week?
Best regards,
BasilisMarch 5, 2018 at 1:21 pm #921463Hello.
I have now updated the Theme with your latest release. Will that now fix the issue with Page Options or something else?Thanks,
IainMarch 5, 2018 at 7:31 pm #921719Hello
I uploaded the new Theme files using FTP and the broke the website so it just showed a blank screen. I have restored the original version so it now works. Why does your theme break the site and can you fix this and the issue if possible.
I am getting really desperate now as I need the website to get finished as soon as possible and the only remaining issue is the videos not returning to the homepage.
If you can help I would be grateful.
Thanks,
IainMarch 6, 2018 at 5:54 am #922046Hi,
Yes, it is working as it should. The page redirects to the home page when the video ended. Please remove browser cache or hard refresh before checking the page. You may notice that the video loops at the end while the redirect loads.
Did you move the site?
Best regards,
IsmaelMarch 7, 2018 at 3:45 pm #923097Thank you everyone its work perfectly you are all amazing.
Really appreciate your help.
March 7, 2018 at 10:47 pm #923405Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Basilis -
AuthorPosts
- The topic ‘Return video to homepage after it plays.’ is closed to new replies.