• Resolved goakes

    (@goakes)


    Hello. Looks like a great plugin. What do I need to select for the “Location” to paste a snippet code before the </body>? Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DraftPress Team

    (@draftpress)

    Hi @goakes – You can use the settings here from the screenshot to put the snippet before the body tag – https://prnt.sc/9zWP4nntVoeb

    Please let us know if you need help with anything else.

    Thank you.

    Thread Starter goakes

    (@goakes)

    Just to confirm. The snippet code is before the end of the body tag (</body>. I note there are two options – before content and after content. I’m not clear what these actually mean. Is the answer the same – before content? Either way, I do appreciate your help.

    Plugin Author DraftPress Team

    (@draftpress)

    @goakes – I see this reply got missed. Here is detailed info on what before content and after content mean in the context of WordPress themes. It’s based on the function the_content and what the plugin does is look for that and add the snippet either before it executes or after it executes.

    Reference:
    https://developer.ww.wp.xz.cn/reference/functions/the_content/

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post code before the tag?’ is closed to new replies.