Does anyone have any suggestions on how to disable certain template parts in a child theme using theme.json in WordPress with Gutenberg?
Using only theme.json
this is not possible, and runs counter to the vision for full site editing.
In the future it’s possible that not only the parent theme templates might be visible, but the templates of previous themes that the user has modified and saved. This has been talked about a lot by the designers working on the site editor, though we haven’t seen it implemented yet. This does mean that at the time of writing it’s extremely unlikely that it can be done entirely using theme.json
, and that they might even consider it a bug to be fixed if a way was discovered.
That’s not to say this can’t be done with PHP filters though, but it can’t be done with just theme.json
.
Related Posts:
- How can I make custom page templates work on child theme?
- Is it possible to override the result of get_template_part()?
- Loading partial templates with AJAX/PJAX
- Child Theme: how to override variables?
- roots child theme can’t override header.php
- Templates & CSS – Proper Programming Practice?
- index.php template is used instead of blog page
- Load template inside a parent template
- Child theme TEMPLATEPATH issue
- Load template file without a post type
- How to apply a custom template for posts by default?
- Unable to include a template
- Updating modified templates
- Child theme template file will not load
- Checking for page templates in child theme
- Should template files be copied to the child theme for editing?
- What should I put on my index.php?
- When a link doesn’t exist, how to tell WordPress what to do? (404 Error Page)
- Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?
- Override template file i subfolders
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- How to preserve changes in templates and other files
- Having trouble with Template hierarchy. I Need to create a set of pages that drill down from states to specific locations
- Custom templates vs page-slug
- Understanding the Template hierarchy
- How does WordPress choose archive type template?
- Override Dokan Includes File in Child Theme
- Use one template only for custom post type archives?
- lost css when overriding themes templates
- ACF costum date format [closed]
- What template is used for viewing Media Library Files?
- get_month_link uses what wordpress template?
- Page header on specific page is different from the rest [closed]
- Differentiation between index.php and page.php
- Single-page.php template file name not shown
- Can I assign a Folder for Post Formats, without it affecting WordPress’ fallback/hierarchical system?
- How to display custom post type?
- Assigning custom page templates to a static blog page
- Archive-custome_post.php template not working
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Organize template parts and page templates in folders in regards of template hierarchy
- Help Understanding Template Hierarchy
- Parent/Child themes – both CSS files loaded
- User role templates
- Assign template to custom page type?
- Child theme enqueueing style.min.css not style.css
- BuddyPress : how can I call the template WordPress would have chosen (template hierarchy)?
- Which template(s) to override to use a different sidebar for blog, single posts, categories, blog archive?
- Why would adding a template file to a child theme cause an error in template-loader.php?
- Single Post Templates Doubt
- WordPress Child Theme Template auth_redirect wrapper
- How can I add some blocks to template without changing template file?
- Page Templates Used in Custom Post Type
- custom template – override plugin template in child theme – issue with scripts
- Show a custom template, no matter the page being viewed, if the user is not logged in
- How to set the background color of a template part (Header/Footer) in Twenty Twentythree?
- How to use Class
in Java? - Is there any way to use get_template_part() with folders?
- How to edit contents of dynamic_sidebar()?
- A special single page templates for posts under a category and all its child category
- When calling wp_title(), do you have to create some kind of “title.php” file?
- Stream Video Player does not work with do_shortcode()?
- How does wordpress blocks?
- Subpage template
- How To Create WooCommerce Custom Template For Specific Product?
- Programatically create a page
- How to custom page template for the Gutenberg editor
- Use PHP templates as blocks
- Login page theming?
- Redirect template based on permalink rather than $wp_query
- How to duplicate a page template but make minor changes to the header?
- get_template_directory() still returning path to previous theme
- What’s the purpose of $wp_did_header?
- Trying to display short code content in template file with do_shortcode()
- Unable to add template to page set as Posts page in WP V 4.6.1
- How to use index.php as a template for archives?
- How to customize WooCommerce templates to avoid override upon update [closed]
- single.php with different look by category
- Creating new content types (Pages, posts, testimonials, tigers, oh my!)
- Way to use one template but be able to call different top graphics?
- Differnt page template for page 2 of blog feed
- How to implement my custom development multiple PHP page work into WordPress?
- Create template for just a print
- dynamic_sidebar() stopped working
- Index template always follows page_template() template?
- WP overwrites my setup_postdata() setup
- wp_list_authors() returning the wrong member url
- Sending email for the custom form in WordPress
- How to use another file instead of home.php
- How to create a archive template for custom post type [duplicate]
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- Exclude certain template from wp_list_pages
- Why wordpress custom template comments shows Undefined index?
- Update body class based on theme as well as a html attribute
- Why is this array not working?
- strange behaviour of template_redirect in IE8
- MailPress plugin: table inline style tag removed when sending the newsletter
- Custom Archive with Content for Custom Post Type
- How to modify/ customise NextGen Gallery’s templates? [closed]
- Overwrite template-tags.php in child theme