Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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.
    Iain

    #917382

    Hey 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,
    Victoria

    #918454

    Hi

    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,
    Iain

    #918905

    Hi,

    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,
    Ismael

    #919016

    Hello
    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,
    Iain

    #919640

    Hello 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,
    Iain

    #919741

    can 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

    #919887

    Hi,

    We are waiting for your reply.

    Thank you very much.

    Best regards,
    Basilis

    #919893

    Hi Sorry it’s been a busy day.

    Current PHP Version is 5.6

    Thanks

    #920268

    Hello

    Is there any update?

    Thanks Iain

    #920282

    Hi,

    There’s an existing “ava_custom_script” function, hence the error. We adjusted the function name a bit.

    Best regards,
    Ismael

    #920285

    So does it work now?

    #920294

    I 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

    #920454

    Hello 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,
    iain

    #921152

    Hi,

    Have you updated to the latest version we have shiped last week?

    Best regards,
    Basilis

    #921463

    Hello.
    I have now updated the Theme with your latest release. Will that now fix the issue with Page Options or something else?

    Thanks,
    Iain

    #921719

    Hello

    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,
    Iain

    #922046

    Hi,

    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,
    Ismael

    #923097

    Thank you everyone its work perfectly you are all amazing.

    Really appreciate your help.

    #923405

    Hi,

    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Return video to homepage after it plays.’ is closed to new replies.