1

The is_page_template() function is for checking if the current page is using a specific custom page template. That being a template selected from the Template dropdown in the Page Attributes box when editing the page. The WordPress conditional tags are not based around which template files are used. They are used to tell you what content is being viewed, ...


1

In a case like this, you're probably going to need to check the conditions in dynamic_sidebar to find out what is not happening. if (isset($_GET['debugsidebar'])) {add_action('init', 'debug_sidebar');} function debug_sidebar() { $id = $_GET['debugsidebar']; $sidebarswidgets = get_option('sidebars_widgets'); if (is_active_sidebar($id)) {$...


1

I picked the following code from an answer here, https://stackoverflow.com/questions/2544870/remove-main-editor-from-wordpress-edit-page-screen/42093956. I tweaked the code to remove the classic editor on pages using default page template. And added the comments. function remove_editor_init() { $post_id = 0; if ( isset( $_GET['post'] ) ) { $post_id =...


Only top voted, non community-wiki answers of a minimum length are eligible