{"id":31941,"date":"2019-05-14T00:00:00","date_gmt":"2019-05-13T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=31941"},"modified":"2023-06-04T23:00:33","modified_gmt":"2023-06-04T17:30:33","slug":"remove-inline-css-from-astra","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/remove-inline-css-from-astra\/","title":{"rendered":"\u00bfC\u00f3mo eliminar Inline CSS de Astra?"},"content":{"rendered":"<p>El siguiente filtro eliminar\u00e1 el CSS en l\u00ednea generado por el tema Astra y el plugin Astra Pro. Pegue el siguiente c\u00f3digo en el campo <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/\">archivo functions.php del tema hijo<\/a> <\/p>\n\n\n\n<section class=\"wp-block-uagb-columns uagb-columns__wrap uagb-columns__stack-mobile uagb-columns__valign-center uagb-columns__gap-10 align uagb-block-decaea0e uagb-columns__columns-1 uagb-columns__max_width-theme\"><div class=\"uagb-columns__overlay\"><\/div><div class=\"uagb-columns__inner-wrap uagb-columns__columns-1\">\n<div class=\"wp-block-uagb-column uagb-column__wrap uagb-column__background-color uagb-block-5fce5720\"><div class=\"uagb-column__overlay\"><\/div>\n<p><strong>NOTA IMPORTANTE<\/strong>: Este filtro eliminar\u00e1 todo el CSS en l\u00ednea a\u00f1adido por Astra que afectar\u00e1 al estilo de su sitio web.<\/p>\n<\/div>\n<\/div><\/section>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>function astra_force_remove_style() {\n    wp_dequeue_style( 'astra-theme-css' );\n    wp_dequeue_style( 'astra-addon-css' );\n}\n\nadd_action( 'wp_enqueue_scripts', 'astra_force_remove_style', 99 );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS.jpeg\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS-1024x468.jpeg\" alt=\"Astra_removing_inline-CSS\" class=\"wp-image-152909\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS-1024x468.jpeg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS-300x137.jpeg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS-768x351.jpeg 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS.jpeg 1191w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Si se encuentra con alg\u00fan error al actualizar el c\u00f3digo o sigue sin poder eliminar el CSS en l\u00ednea de su sitio web, por favor <a href=\"https:\/\/git-staging.wpastra.com\/es\/support\/open-a-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">tender la mano<\/a> y estaremos encantados de echar un vistazo a su sitio web.<\/p>","protected":false},"excerpt":{"rendered":"<p>El siguiente filtro eliminar\u00e1 el CSS en l\u00ednea generado por el tema Astra y el plugin Astra Pro. Pegue el siguiente c\u00f3digo en el archivo functions.php del tema hijo NOTA IMPORTANTE: Este filtro eliminar\u00e1 todo el CSS en l\u00ednea a\u00f1adido por Astra que afectar\u00e1 al estilo de su sitio web. Si se encuentra con alg\u00fan error al actualizar [...]<\/p>","protected":false},"author":20,"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":[2109],"docs_tag":[],"class_list":{"0":"post-31941","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_links_inbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_internal_count_data":["a:1:{i:0;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:32:\"child theme's functions.php file\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}}"],"wpil_links_outbound_external_count_data":["a:0:{}"],"_edit_lock":["1685899841:86"],"_edit_last":["86"],"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_content_score":["60"],"_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\";}"],"_yoast_wpseo_title":["How to Remove Inline CSS from Astra?"],"uagb_style_timestamp-css":["1588223446"],"uag_style_timestamp-css":["1590155471"],"_ht_kb_post_views_count":["8"],"_ht_kb_usefulness":["0"],"_ht_article_order_103":["31941"],"wp_last_modified_info":["June 4, 2023 @ 11:00 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["6656"],"helpful":["8"],"unhelpful":["21"],"redirects":["5"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2023-06-04 23:00:33"],"rank_math_title":["How to Remove Inline CSS from Astra?"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["868"],"rank_math_primary_docs_category":["2109"],"rank_math_seo_score":["14"],"rank_math_internal_links_processed":["1"],"pfd_related_docs":[""],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"8ebba1f871ab5c8d246097322267f706\";s:6:\"images\";a:1:{i:0;s:98:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/06\/Astra_removing_inline-CSS-1024x468.jpeg\";}}"],"_trp_automatically_translated_slug_es_ES":["eliminar-inline-css-de-astra"],"_uag_page_assets":["a:9:{s:3:\"css\";s:4012:\".uagb-block-decaea0e.wp-block-uagb-columns.uagb-columns__wrap{padding-top: 20px;padding-bottom: 20px;padding-left: 0px;padding-right: 0px;margin-top: 0px;margin-bottom: 0px;}.uagb-block-decaea0e .uagb-columns__video-wrap{opacity: 0.5;}.uagb-block-decaea0e > .uagb-columns__inner-wrap{max-width: 1200px;}.uagb-block-decaea0e .uagb-column__inner-wrap{padding: 10px;}.uagb-block-decaea0e .uagb-column__wrap{padding: 10px;}.uagb-block-decaea0e .uagb-columns__shape.uagb-columns__shape-top .uagb-columns__shape-fill{fill: rgba(51,51,51,1);}.uagb-block-decaea0e .uagb-columns__shape.uagb-columns__shape-bottom .uagb-columns__shape-fill{fill: rgba(51,51,51,1);}.uagb-block-decaea0e.wp-block-uagb-columns{box-shadow: 0px 0px    ;}.uagb-block-decaea0e > .uagb-columns__overlay{border-radius:    ;}.uagb-block-decaea0e.uagb-columns__wrap{border-style: none;}.wp-block-uagb-column.uagb-block-5fce5720.uagb-column__wrap{padding-left: 10px;padding-right: 10px;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;border-style: none;}.wp-block-uagb-column.uagb-block-5fce5720 > .uagb-column__overlay{background-color: #d9edf7;border-radius:    ;}@media only screen and (max-width: 976px) {.uagb-block-decaea0e.uagb-columns__wrap{border-style: none;}.wp-block-uagb-column.uagb-block-5fce5720.uagb-column__wrap{border-style: none;}}@media only screen and (max-width: 767px) {.uagb-block-decaea0e.uagb-columns__wrap{border-style: none;}.wp-block-uagb-column.uagb-block-5fce5720.uagb-column__wrap{border-style: none;}}.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:7:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"uagb\/columns\";i:2;s:11:\"uagb\/column\";i:3;s:9:\"core\/code\";i:4;s:10:\"core\/image\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1780102727\";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":"Anjali","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/anjalic\/"},"uagb_comment_info":0,"uagb_excerpt":"The following filter will remove inline CSS generated by the Astra theme and Astra Pro plugin. Paste the following code into the child theme&#8217;s functions.php file IMPORTANT NOTE: This filter will remove all the inline CSS added by Astra which will affect the styling of your website. If you are facing any error while updating&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/31941"}],"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\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=31941"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/31941\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=31941"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=31941"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=31941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}