Check if sidebar is active on page with id September 29, 2022 by Tarik Billa You mean like this: if (is_active_sidebar($sidebar-name) && is_page($page-id)) {do your thing} ?