Adding content before a post
-
I’ve found a bunch of plugins that allow me to insert content everywhere in a post: before, after, in the middle of, underneath, on top of, inside of…anyway, a bit of overkill. Is there a simple code I can throw in functions.php that allows me to put a simple line of HTML before the title of each post?
I tried using this CSS to achieve this,
#post-title:before {content: "<p class=pretitle>Today's episode</p>";}
but CSS places it inline and I need it on the previous line.Oh, I also found PHP code telling me how to insert things in footnotes and at the end of each post, but I need this at the beginning.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding content before a post’ is closed to new replies.