Okay
  Public Ticket #2426094
Portfolio Pages need reloading
Closed

Comments

  • Yoav Meiri started the conversation

    When clicking on any portfolio item, the first time it loads all styling and functionalities are gone. If you reload the page, it loads correctly. 

  •  1,974
    Support replied

    Hello Yoav,

    Ajax page transitions will load the target page content container within the original page. Since the target page is not loaded normally the <head> and <body> elements will stay the same.

    Since a lot of plugins are using javascript initialisation in the head (or the footer) of the page they don't get called in the target page.

    The solution we found is to put all the extra inits in ajaxSuccess event handler as you can see in the child theme we provide in main archive (I attach it here for your convenience, childscript.js file)

    So if you know what function to call from the plugin API you can add it there.

    You can also disable AJAX page transitions in appearance -> customizer -> general settings

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  1,974
    Support replied

    The child theme

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy