How to tell if a dynamic sidebar is being displayed on page?
Because of the way templates are rendered in WordPress it won’t be possible to know if a page has a sidebar until after that sidebar has been rendered. This is because code in templates can’t ‘know’ what code exists later in rendering sequence. What I would recommend is determining what the conditions are which your … Read more