{"id":31923,"date":"2019-05-15T00:00:00","date_gmt":"2019-05-14T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=31923"},"modified":"2024-03-20T14:04:27","modified_gmt":"2024-03-20T08:34:27","slug":"disable-all-meta-settings-of-page-post-by-default","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/disable-all-meta-settings-of-page-post-by-default\/","title":{"rendered":"Desactivar todos los Meta Ajustes de P\u00e1gina\/Post por defecto"},"content":{"rendered":"<p><a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/page-meta-settings\/\">Astra meta settings<\/a> son ajustes espec\u00edficos de cada p\u00e1gina. Estos ajustes le permiten desactivar las secciones de Astra en una p\u00e1gina\/post en particular.  <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"878\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements.png\" alt=\"\" class=\"wp-image-175619\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements.png 1920w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements-300x137.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements-1024x468.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements-768x351.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements-1536x702.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/03\/disable-elements-18x8.png 18w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/figure>\n\n\n\n<p>Adem\u00e1s, puedes desactivar todos los ajustes meta de Astra en p\u00e1ginas y entradas por defecto (todas las casillas marcadas) mediante un c\u00f3digo personalizado.<\/p>\n\n\n\n<p>Este documento proporciona el c\u00f3digo personalizado para desactivar por defecto todos los ajustes meta de Astra para p\u00e1ginas y entradas. Este enfoque puede ahorrar tiempo y esfuerzo, especialmente cuando se gestionan numerosas p\u00e1ginas o entradas con necesidades m\u00ednimas de personalizaci\u00f3n.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Desactivaci\u00f3n por defecto de todos los par\u00e1metros meta<\/strong><\/h3>\n\n\n\n<p>Astra ofrece una soluci\u00f3n para desactivar todos los ajustes meta por defecto para todas las p\u00e1ginas y entradas nuevas. Esta funcionalidad elimina la necesidad de volver a revisar estos ajustes para cada pieza de contenido a menos que se requiera una personalizaci\u00f3n espec\u00edfica.<\/p>\n\n\n\n<p>He aqu\u00ed c\u00f3mo conseguirlo:<\/p>\n\n\n\n<p>Antes de realizar cualquier personalizaci\u00f3n, es recomendable crear un archivo&nbsp;<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">tema hijo para evitar que afecte al tema principal<\/a>. Si ya dispone de un tema hijo, puede omitir este paso.<\/p>\n\n\n\n<p>Ahora, usted puede seguir los pasos enlisted abajo para inhabilitar todos los ajustes de la meta de la p\u00e1gina\/post por defecto.<\/p>\n\n\n\n<p><strong>Paso 1: Acceda a su panel de control de WordPress<\/strong><\/p>\n\n\n\n<p>Inicie sesi\u00f3n en el panel de administraci\u00f3n de WordPress. Aqu\u00ed es donde realizar\u00e1s los cambios necesarios en las p\u00e1ginas de categor\u00edas de WooCommerce.<\/p>\n\n\n\n<p><strong>Paso 2: Abra el<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">&nbsp;Tema infantil<\/a>&nbsp;Archivo functions.php<\/strong><\/p>\n\n\n\n<p>Vaya a \"Apariencia\" en el panel de WordPress y seleccione \"Editor de temas\". En el Editor de temas, busque y haga clic en el archivo \"functions.php\". Este archivo contiene el c\u00f3digo que controla varios aspectos de tu tema de WordPress.<\/p>\n\n\n\n<p><strong>Paso 3: Introducir el c\u00f3digo<\/strong><\/p>\n\n\n\n<p>Una vez que est\u00e9s en el archivo \"functions.php\", tendr\u00e1s que insertar el siguiente fragmento de c\u00f3digo:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_meta_box_options', 'default_disable_options' );\n\n\/**\n* Default disable the Meta Options\n*\n* @param array $meta_option Page Meta.\n* @return array\n*\/\nfunction default_disable_options( $meta_option ) {\n\n    $meta_option&#91;'ast-hfb-above-header-display'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'ast-main-header-display'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'ast-hfb-below-header-display'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'ast-hfb-mobile-header-display'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'footer-sml-layout'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'footer-adv-display'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'site-post-title'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'site-sidebar-layout'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'site-content-layout'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'ast-featured-img'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n    $meta_option&#91;'ast-breadcrumbs-content'] = array(\n            'default'  =&gt; 'disabled',\n            'sanitize' =&gt; 'FILTER_DEFAULT',\n    );\n\n    return $meta_option;\n}<\/code><\/pre>\n\n\n\n<p><strong>Paso 4: Guarde los cambios<\/strong><\/p>\n\n\n\n<p>Despu\u00e9s de insertar el c\u00f3digo, aseg\u00farese de guardar los cambios haciendo clic en el bot\u00f3n \"Actualizar archivo\". De este modo, las modificaciones surtir\u00e1n efecto en su sitio web.<\/p>\n\n\n\n<p>Esperamos que este documento le haya sido \u00fatil. No dude en dejarnos un comentario a continuaci\u00f3n si tiene alguna duda.<\/p>","protected":false},"excerpt":{"rendered":"<p>Astra meta settings are page-specific settings. These settings allow you to disable Astra sections on a particular page\/post. In addition, you can disable all Astra meta settings on pages and posts by default (all boxes checked) by using a custom code. This document provides the custom code to disable all Astra meta settings for pages [\u2026]<\/p>","protected":false},"author":34,"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":"default","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":"set","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":[2109],"docs_tag":[],"class_list":{"0":"post-31923","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-theme-pro-filters"},"spectra_custom_meta":{"_wp_old_slug":[""],"_wp_page_template":["default"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["0"],"wpil_links_inbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_internal_count":["3"],"wpil_links_outbound_internal_count_data":["a:3:{i:0;a:9:{s:3:\"url\";s:56:\"https:\/\/git-staging.wpastra.com\/docs\/meta-settings-free\/\";s:8:\"url_real\";s:56:\"https:\/\/git-staging.wpastra.com\/docs\/meta-settings-free\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:19:\"Astra meta settings\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:1;a:9:{s:3:\"url\";s:93:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/Image-2019-07-22-at-5.15.12-PM.png\";s:8:\"url_real\";s:93:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/Image-2019-07-22-at-5.15.12-PM.png\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:136:\"<img src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/Image-2019-07-22-at-5.15.12-PM.png\" alt=\"\" class=\"wp-image-39894\"\/>\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:2;a:9:{s:3:\"url\";s:57:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/\";s:8:\"url_real\";s:57:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:33:\"child theme's functions.php file.\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}}"],"wpil_links_outbound_external_count":["0"],"wpil_links_outbound_external_count_data":["a:0:{}"],"wpil_sync_report2_time":["2019-08-28T08:19:43+00:00"],"_edit_lock":["1710923673:89"],"_ppc_meta_key":["a:8:{s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key3\";s:17:\"Category Selected\";s:8:\"ppc_key5\";s:15:\"Title is Catchy\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";}"],"_edit_last":["89"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"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_title":["How to Disable All Meta Settings of Page\/Post with Astra?"],"_yoast_wpseo_content_score":["90"],"_ht_kb_post_views_count":["11"],"_ht_kb_usefulness":["0"],"_ht_article_order_103":["31923"],"wp_last_modified_info":["November 29, 2021 @ 4:30 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["8114"],"helpful":["2"],"unhelpful":["24"],"redirects":["6"],"_yoast_wpseo_estimated-reading-time-minutes":["1"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2021-09-08 21:02:29"],"_yoast_wpseo_primary_docs_category":["2109"],"_yoast_wpseo_focuskw":["Disable Astra Meta Settings"],"_yoast_wpseo_metadesc":["You can disable all Astra meta settings on pages and posts by default. Learn how to do this with a custom code in this document."],"_yoast_wpseo_linkdex":["53"],"rank_math_primary_docs_category":["2109"],"rank_math_title":["How to Disable All Meta Settings of Page\/Post with Astra?"],"rank_math_description":["You can disable all Astra meta settings on pages and posts by default. Learn how to do this with a custom code in this document."],"rank_math_focus_keyword":["Disable Astra Meta Settings"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["865"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"a090581a1071322b86cdbda472737ded\";s:6:\"images\";a:1:{i:0;i:175619;}}"],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["desactivar-todos-los-meta-ajustes-de-la-pagina-de-post-por-defecto"],"rank_math_seo_score":["15"],"_uag_custom_page_level_css":[""],"ast-site-content-layout":["default"],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"pfd_related_docs":[""],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".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:0:\"\";s:18:\"current_block_list\";a:6:{i:0;s:14:\"core\/paragraph\";i:1;s:10:\"core\/image\";i:2;s:12:\"core\/heading\";i:3;s:9:\"core\/code\";i:4;s:14:\"uagb\/container\";i:5;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776609635\";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":"Premanshu","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/premanshup\/"},"uagb_comment_info":0,"uagb_excerpt":"Astra meta settings are page-specific settings. These settings allow you to disable Astra sections on a particular page\/post. In addition, you can disable all Astra meta settings on pages and posts by default (all boxes checked) by using a custom code. This document provides the custom code to disable all Astra meta settings for pages&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/31923"}],"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\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=31923"}],"version-history":[{"count":1,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/31923\/revisions"}],"predecessor-version":[{"id":175621,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/31923\/revisions\/175621"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=31923"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=31923"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=31923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}