The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

how to insert stuff above all content (3 posts)

  1. Samuel Coskey
    Posted 4 years ago #

    I'm trying to write a plugin that prints some html inside the body, but above all of the reasonable content. I can't find an action hook to do it!

    I tried wp_head, but that's in the header not the body.

    I tried loop_start, but many themes seem to execute too many loops, so for instance with the thematic theme, my material appears twice in the header and once in the body. With certain widgets it can then appear again in the sidebar.

    Any ideas?

  2. George Stephanis
    Code Monkey
    Posted 4 years ago #

    Do you mean graphically above the stuff in the body, or actually code-wise before the body? Fixed or variable height? Does it need to be in the seo-friendly html, or can it be inserted with JS?

  3. Samuel Coskey
    Posted 4 years ago #

    I guess you're right: inserting it with scripts is best. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic