Is widget/sidebar showing in current page?
-
Hi!
I’m developing a plugin/widget that will be deployed at a couple hundred sites. Most of the sites have sidebars. The sites all look different and uses a vast variation of themes. The plugin is a mu-plugin and I’m automatically adding a widget to an active sidebar. If an active sidebar doesn’t exists I’m hooking into get_footer function to display the content. However, the problem is that some sites only have a sidebar on the start page.I need a general solution to check if either the widget or sidebar is active on “current page” i.e is widget active on the contact page, or is the sidebar active on the about page. The content should only be displayed once.
Is there a way to do this?
I appreciate all the help I can get.
- The topic ‘Is widget/sidebar showing in current page?’ is closed to new replies.