My current requirement is to stick a countdown timer on the top of every page or on the side of all pages. But since i get too many requests like this, i was looking for a technique with which i can include some external javascript or jquery plugin or maybe some HTML code forced upon a particular location on some/all pages. Has anybody ever done this??

For my requirements, i have found some plugins for countdown timers but they would only create a sidebar or a post. What i had in mind that i would create a div with an iframe inside pointing to countdown page and will stick this div on the top of the page through CSS. But i wanna know if there is any standard way of doing such things.

1 Answer 1


You'll want to write a plugin or add to your theme's functions.php file a function to filter the_content.

There's already a good answer to this problem at WordPress hooks/filters insert before content or after title.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.