[Support request] Karta Javascript Embedding

Home Forums Support Karta Javascript Embedding

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #880253
    James

    A client is using Karta and build a funnel/landing page. the script below is an example of simple insert and this page replaces the page and shows the Kartra landing page instead.

    <script type=”text/javascript” src=”https://domainname.kartra.com/page/embed/somecode”></script&gt;

    Using other themes wodpress themes or avada and so on. when I go to the landing page the javascript kicks in right away and the kartra page loads and that’s all you see and nothing else.

    With Generate Press you first see the initial page then the javascript loads and you then see the new embedded landing page as if the javascript is delayed and not being looked at until after the initial page is loaded?

    is there any way I can change this in Generate Press?

    thanks in advance
    James

    GeneratePress 2.2.2
    GP Premium 1.8.1
    #880285
    David
    Staff
    Customer Support

    Hi there,

    how are you adding the script?

    #880303
    James

    Literally just adding via text tab using classic wordpress editor.

    #880550
    David
    Staff
    Customer Support

    Try using a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    The before_header hook will place the script before any of the theme is loaded.

    #880610
    James

    Hi David,

    Unfortunately didn’t work, still loads theme first then landing page.

    Added hook with script, chose before header and select the page required.

    Landing page loads using the hook but still only after theme/page has loaded 🙁

    James

    #880825
    David
    Staff
    Customer Support

    Hmmm…. the thing is the script isn’t render blocking so the that page being so light is gonna load before the request is complete. You could use the Layout Element to remove the Site Header, content title etc from the page.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.