WordPress.org

Ready to get started?Download WordPress

Forums

how to insert stuff above all content (3 posts)

  1. Samuel Coskey
    Member
    Posted 2 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. 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
    Member
    Posted 2 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