- Getting Started With Starter Templates
- Install Starter Templates
- Premium Starter Templates – Install and Activate License
- Building Your Website With Starter Templates
- How to import Starter Templates with WP CLI Command
- Starter Templates — FAQs and Basics
- Understanding Starter Templates Compatibility Across Themes
- Starter Templates – Patterns
- Why You Need to Connect Starter Templates with ZipWP AI Website Builder
- Create Multilingual WordPress Websites with Starter Templates
- Getting Started With Starter Templates
- Starter Templates Importing
- How to Import A Complete Site With Starter Templates?
- How to Import Single Page With Starter Templates?
- Importing Gutenberg Pages, Patterns, and Kits
- Starter Templates – Elementor Popup
- How to Fix Starter Template Importing Issues
- Building Your Website With Starter Templates
- Starter Templates FAQs
- How to Import A Complete Site With Starter Templates?
- How to Import Single Page With Starter Templates?
- Can I Import Starter Templates Site on Existing Website?
- Importing Gutenberg Pages, Patterns, and Kits
- How to Fix Starter Template Importing Issues
- How to Fix Operation Timed Error While Importing a Starter Template?
- How to Fix Blocked Requests Error While Importing a Starter Template?
- How to Fix 5XX Error While Importing a Starter Template?
- Starter Templates Importing
- How to import Starter Templates with WP CLI Command
- Starter Templates – Free Images from Pixabay
- Starter Templates – Restore Customizer Backup
- Mountain Template With Elementor Theme Style
- Filter to Remove Starter Templates Button on Post Types
- How to Enable/Disable Elementor While Importing Starter Templates
- How to Set Block Editor as the Default Page Builder In Starter Templates
- How to Set Up Your E-Commerce Store With Starter Templates
- How to Enable Single Page Import Button with White Label
- How to Process Refund Requests?
- How To Reset WordPress Installation?
- XMLReader Support Missing – Starter Templates
- cURL Support Missing – Starter Templates
- Required File Permissions Missing – Starter Templates
- Disable Debug Mode – Starter Templates
- Update Required Plugins – Starter Templates
- Starter Templates — FAQs and Basics
- Starter Templates – Required plugins missing
- Plugin Installation Failed – Multisite
- System Requirements – Starter Templates
Filter to Remove Starter Templates Button on Post Types
If you are looking to remove the Starter Templates button visible on the top of the Pages/Posts of your website.
You can insert the following filter in your child theme’s functions.php file (How?) –
You can insert the following filter –
1) To disable the Gutenberg Templates button from all post types.
add_filter( 'ast_block_templates_disable', '__return_true' );
2) To disable the Gutenberg Templates button for Page post type.
add_filter( 'ast_block_templates_disable', function( $default = false ) { if( isset( $_REQUEST['post_type'] ) && 'page' === $_REQUEST['post_type'] ) { return true; }return $default; } );
Note:
Please add the required code to the functions.php of your child theme.
Refer to this doc on How to Add Custom Code to the Child theme?
Was this doc helpful?
What went wrong?
We don't respond to the article feedback, we use it to improve our support content.
On this page