I run a horror related blog. Google is upset with me for displaying adsense in a sidebar widget for one specific post number (4603) that contains an article about an 18+ topic. How can I disable the widgets for a specific id?
Leave a Reply
You must be logged in to post a comment.
I’d recommend the plugin Widget Logic to handle all your needs. You can just add logical tags to the individual widgets on the sidebar.
http://wordpress.org/extend/plugins/widget-logic/
You can filter
sidebars_widgets
and remove the widget you donât need.Example with a search widget; uncomment the debug code to find the correct identifier.
I’d recommend Widget Manager Light or Display Widgets plugin for this. It’s easier than using conditional tags or any code. You can see details on here.
Widget Manager Light let’s you chose which widget to show on which post easily.
Thanks