/
No results found. Try again with different words?
Search must be at least 3 characters.
- Getting Started With Starter Templates
- How to Install Starter Templates (Free) Plugin?
- Building Your Website With Starter Templates
- Premium Starter Templates – Install and Activate License
- Starter Templates — Basics and FAQs
- How to import Starter Templates with WP CLI Command
- Understanding Starter Templates Compatibility Across Themes
- Create Multilingual WordPress Websites with Starter Templates
- Why You Need to Connect Starter Templates with ZipWP AI Website Builder
- Starter Templates – Patterns
- 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
- Select Preferred Page Builder While Importing Classic 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
- How to Fix Starter Template Importing Issues
- How to import Starter Templates with WP CLI Command
- Required for Import: Enable Elementor’s Flexbox Container
- We are facing a temporary issue in importing this template
- Error 406 while importing Starter Templates on your WordPress website
- How to Enable Single Page Import Button with White Label
- How to Set Up Your E-Commerce Store With Starter Templates
- How to Set Block Editor as the Default Page Builder In Starter Templates
- How to Enable/Disable Elementor While Importing Starter Templates
- Filter to Remove Starter Templates Button on Post Types
- Mountain Template With Elementor Theme Style
- Starter Templates – Restore Customizer Backup
- Starter Templates – Free Images from Pixabay
- How to Fix Starter Template Importing Issues
- Starter Templates FAQs
- Curl Support Missing Error – for the Administrators
- We are facing a temporary issue in importing this template
- cURL error 60: unable to install Astra Pro plugin
- WP_Error-cURL error 7: Failed to connect to websitedemos.net
- Error 406 while importing Starter Templates on your WordPress website
- The blank screen in the Customizer area
- Could not store XML file in /wp-content/ folder?
- How to Fix 5XX Error While Importing a Starter Template?
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.
![Starter Templates Remove Starter Templates Button](https://startertemplates.com/wp-content/uploads/2021/03/starter-templates-remove-starter-templates-button.png)
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