Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I tried the script on a local test website in a js field, and it works. The [load] shortcode is for including a file, so it’s not necessary for this purpose.

    The js field gets embedded right before the end of body – which is perfect for javascript that needs to run after all the content (including the page footer) is displayed.

    However, the code you have includes an iframe. An iframe, or inline frame, embeds another document (in this case an ad campaign from markerly.com) into the current page. You wouldn’t want this in the js field, because the frame will display *after* the footer.

    As a test, you can try pasting the code into the post itself, in the text (not visual) editor. If it displays correctly, then it’s a matter of figuring out the best location to place the code.

    Plugin Author Eliot Akira

    (@miyarakira)

    So, for a code snippet that includes an iframe, the js field is not recommended – because the frame will be shown at the bottom of the page, under the footer. The iframe should be placed somewhere inside the page – at the end of the post, or in a sidebar widget maybe.

    It is strange that the js field didn’t display anything. The name/slug of the custom field needs to be exactly js. You can check the exact name of the field you created, under Dashboard -> Content.

    Thread Starter Blisslove

    (@blisslove)

    Thank You! This worked great! I think I was too focused on not being able to see it when I saved my draft & tried to preview. But now I know it works much like embedding a YouTube video within a post, you don’t always see it until you publish. Thanks Again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Footer js not showing up’ is closed to new replies.