How Do I Intercept Banner in WordPress?

Posted by Volomike on Stack Overflow See other posts from Stack Overflow or by Volomike
Published on 2010-04-06T20:12:32Z Indexed on 2010/04/06 20:13 UTC
Read the original article Hit count: 409

My client wants me to make a plugin that intercepts the banner on a WordPress blog so that the existing one displays, but right beneath it, above the content and the sidebar, another banner appears. And he needs it such that it works in most themes and isn't theme-specific.

I found I could use add_action('loop_start','interceptMe') to put something at the top before posts or a single post, but it still left the sidebar on the right. I have tried using add_action('all','test') to dump out different intercepts to see if I could figure this out, but I just can't seem to get it yet. I'm thinking I may have to intercept all esc_html calls and contextually inspect that until I find one used for the banner.

Does anyone know how to intercept the banner to add another one right beneath it?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about wordpress-plugin