Okay
  Public Ticket #3646251
Video Bug with Ajax
Closed

Comments

  •  1
    Nick started the conversation

    Hello,

    I have an issue where the hero video breaks when loading the page via AJAX for the SECOND TIME (i.e. going back to the page). See what I mean here:https://video.llobe.com/6641857f6c4fec8d0e13e0bd

    Ideally the background video should reload once the page reloads via AJAX. Turning off ajax loading fixes this issue but I like the smooth loading and that's one of the reasons I bought the theme.

  •  1,973
    Support replied

    Hi Nick,

    You are correct. Let us see if we can debug this - if it's possible to send us wp admin access in a private comment so we can have a look?

    On a side note you can disable ajax and keep the smooth scrolling on. But it should work with ajax.


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Nick replied privately
  •  1,973
    Support replied

    Hello Nick,

    So I fixed the issue by adding the highlighted code to /js/scripts.js (path relative to root theme folder)

    https://prnt.sc/LXZuNPb_FsIB

    Usually the hero image for a video hero is actually the first frame/still of the video.

    We will include this fix in our next release. Hard refresh the content (Ctrl+F5) before testing.


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1
    Nick replied

    Thank you so much, really appreciate the quick fix! I'll make sure to add a 5-star review to Themeforest.

    Can I ask a follow up question? Once I add the hero video, I lose the option to have a subtitle. Is there a way to keep the subtitle when a video hero is placed, and additionally to disable the animation that moves the text to the bottom left (should stay in place in center)?

  •  1,973
    Support replied

    Hello Nick, we fixed that as well in /include/hero-properties.php (path relative to root theme folder) - line 124

    Needless to say we will include this fix in our next update (which will be released very soon, to day or tomorrow)

    Plz test and let us know.

    If you intend to write one, we really appreciate your review.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1
    Nick replied

    Thank you! That works great! Is there a way to disable the transition effect (so the title and subtitle stay in place)? Ideally as a switch on the page but temporarily a page-level template or script that deactivates the transition effect.


    PS: Review has been posted.

  •  1,973
    Support replied

    Hello Nick, 

    first of all, thank you again for your review.

    Re. the transition effect: do you mean the sliding to the left when scrolling down (title + subtitle)?

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1
    Nick replied

    Yes that is correct. Is there a way to disable the sliding to the left when scrolling down?

  •  1
    Nick replied

    To clarify I only need to disable that in the homepage, not the portfolio pages. So ideally a settings switch on the page, or a script I can add on a template level.

  •  1,973
    Support replied

    Hello Nick, so we updated several files - to have this option Enable flip effect for each page and portfolio item, default is set to on

    https://prnt.sc/x2_XM57EqA-x

    This feature is included in today's update (1.2)

    Hard refresh before testing

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1
    Nick replied

    Awesome, thank you so much!