{"id":80927,"date":"2021-03-10T16:31:08","date_gmt":"2021-03-10T11:01:08","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=80927"},"modified":"2022-02-24T00:22:08","modified_gmt":"2022-02-23T18:52:08","slug":"filter-to-remove-starter-templates-button","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/filter-to-remove-starter-templates-button\/","title":{"rendered":"Filtro para eliminar el bot\u00f3n Starter Templates en los tipos de entrada"},"content":{"rendered":"<p>Si desea eliminar el bot\u00f3n Starter Templates visible en la parte superior de las P\u00e1ginas\/Posts de su sitio web.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button.png\" alt=\"Starter Templates Remove Starter Templates Button\" class=\"wp-image-80928\" width=\"842\" height=\"434\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button.png 1684w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button-300x154.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button-1024x527.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button-768x395.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/03\/starter-templates-remove-starter-templates-button-1536x791.png 1536w\" sizes=\"(max-width: 842px) 100vw, 842px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Puede insertar el siguiente filtro en el archivo functions.php de su tema hijo (<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/filter-to-remove-starter-templates-button\/#note:\">\u00bfC\u00f3mo?<\/a>) -<\/p>\n\n\n\n<p>Puede insertar el siguiente filtro -<\/p>\n\n\n\n<p>1) Para desactivar el bot\u00f3n Plantillas Gutenberg de todos los tipos de post.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">add_filter( 'ast_block_templates_disable', '__return_true' );<\/pre>\n\n\n\n<p>2) Para desactivar el bot\u00f3n Plantillas Gutenberg para el tipo de entrada P\u00e1gina.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">add_filter( 'ast_block_templates_disable', function( $default = false ) {\t\nif( isset( $_REQUEST['post_type'] ) &amp;&amp; 'page' === $_REQUEST['post_type'] ) {\n\t\treturn true;\n\t}\treturn $default;\n} );<\/pre>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__outer-wrap uagb-inline_notice__align-left uagb-block-29741d4b\"><h4 class=\"uagb-notice-title\">Nota:<\/h4><div class=\"uagb-notice-text\"><p>A\u00f1ada el c\u00f3digo necesario al archivo functions.php de su tema hijo.<\/p><p>Consulte este documento sobre\u00a0<strong><a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">\u00bfC\u00f3mo a\u00f1adir c\u00f3digo personalizado al tema hijo?<\/a><\/strong><\/p><\/div><\/div>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Si desea eliminar el bot\u00f3n Starter Templates visible en la parte superior de las P\u00e1ginas\/Posts de su sitio web. Puede insertar el siguiente filtro en el archivo functions.php de su tema hijo (\u00bfC\u00f3mo?) - Puede insertar el siguiente filtro - 1) Para desactivar el bot\u00f3n Plantillas Gutenberg de todos los tipos de post. add_filter( 'ast_block_templates_disable', '__return_true' [...].<\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[1959],"docs_tag":[],"class_list":{"0":"post-80927","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-starter-templates"},"spectra_custom_meta":{"_edit_lock":["1645642330:77"],"_edit_last":["77"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_yoast_wpseo_estimated-reading-time-minutes":["1"],"_yoast_wpseo_primary_docs_category":["1959"],"_ht_kb_post_views_count":["5"],"_ht_kb_usefulness":["0"],"_ht_article_order_1959":["80927"],"wp_last_modified_info":["February 24, 2022 @ 12:22 AM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["4874"],"helpful":["1"],"unhelpful":["0"],"redirects":["5"],"rank_math_primary_docs_category":["1959"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["409"],"rank_math_seo_score":["15"],"rank_math_internal_links_processed":["1"],"pfd_related_docs":[""],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"741278f6d129e42a66849a620ed79779\";s:6:\"images\";a:1:{i:0;i:80928;}}"],"_trp_automatically_translated_slug_es_ES":["filtro-para-eliminar-el-boton-de-plantillas-de-inicio"],"_uag_page_assets":["a:9:{s:3:\"css\";s:3730:\" .uagb-block-29741d4b.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-29741d4b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;background-color: #fff8e1;border: 2px solid #fdf4c9;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-29741d4b.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-29741d4b.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-29741d4b .uagb-notice-title{background-color: #fdf4c9;border-top-right-radius: 3px;border-top-left-radius: 3px;}@media only screen and (max-width: 976px) { .uagb-block-29741d4b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-29741d4b .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-29741d4b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-29741d4b .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:271:\"document.addEventListener(\"DOMContentLoaded\", function(){ window.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-29741d4b' );\n});\n });\";s:18:\"current_block_list\";a:6:{i:0;s:14:\"core\/paragraph\";i:1;s:10:\"core\/image\";i:2;s:17:\"core\/preformatted\";i:3;s:18:\"uagb\/inline-notice\";i:4;s:14:\"uagb\/container\";i:5;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1778856837\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Suman","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/sumand\/"},"uagb_comment_info":0,"uagb_excerpt":"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&#8217;s functions.php file (How?) \u2013 You can insert the following filter \u2013 1) To disable the Gutenberg Templates button from all post types. add_filter( 'ast_block_templates_disable', '__return_true'&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/80927"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=80927"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/80927\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=80927"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=80927"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=80927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}