martijnheesters
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to remove parent templates from child themeThanks for the solution 🙂 (remember to mark this topic as resolved)
Forum: Themes and Templates
In reply to: How to remove parent templates from child themeDid you put the code in your child theme’s functions.php ?
Best way to find out what is happening is to check the following:
– disable all plugins
– use a standard WP theme (like twenty fourteen)
– create a child theme
– add the above code to the child theme and set the page template to a template in twenty fourteen (like full width page)Check if this simple case works.
If it doesn’t: I can’t help you
If it works: start enabling your pluginsIf it still works: it’s probably your parent theme that maybe has a weird way of setting page templates
If it doesn’t: one of your plugins are causing a problemForum: Themes and Templates
In reply to: [Anaglyph Lite] Visual ComposerVisual composer isn’t included.
The free Lite version only has “visual composer support”.
You can buy it on Codecanyon.Forum: Themes and Templates
In reply to: How to remove parent templates from child themeAh sorry, i thought you meant it (only) worked on one file.
You could try this plugin:
https://wordpress.org/plugins/omit-parent-theme-page-templates/Forum: Themes and Templates
In reply to: How to remove parent templates from child themeYou can probably do this by unsetting more page templates, like in this example:
// Remove page templates inherited from the parent theme. add_filter( 'theme_page_templates', 'child_theme_remove_page_template' ); function child_theme_remove_page_template( $page_templates ) { unset( $page_templates['page-home.php'] ); unset( $page_templates['page-creature.php'] ); return $page_templates; }