{"id":153593,"date":"2023-07-10T17:16:16","date_gmt":"2023-07-10T11:46:16","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=153593"},"modified":"2023-07-10T17:27:36","modified_gmt":"2023-07-10T11:57:36","slug":"astra-woocommerce-css-overriding-global-h2-tag-font-size-on-product-page","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/astra-woocommerce-css-overriding-global-h2-tag-font-size-on-product-page\/","title":{"rendered":"Astra WooCommerce CSS anulaci\u00f3n Global H2 etiqueta de tama\u00f1o de fuente en la p\u00e1gina del producto"},"content":{"rendered":"<p>En versiones anteriores de Astra (anteriores a la v4.0.1), el CSS de Astra WooCommerce sol\u00eda anular el tama\u00f1o de fuente global de la etiqueta H2 en la p\u00e1gina del producto. Sin embargo, en la \u00faltima versi\u00f3n de Astra (v4.0.1), se ha introducido un filtro para solucionar este problema. Por favor, consulte la captura de pantalla adjunta para mayor claridad.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override-1024x509.png\" alt=\"Astra WooCommerce CSS overriding Global H2 tag font size on product page\" class=\"wp-image-153659\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override-1024x509.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override-300x149.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override-768x382.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/07\/Astra-Woocommerce-CSS-Override.png 1342w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Para resolver el problema por el que el tama\u00f1o de fuente asignado a la etiqueta H2 dentro de la descripci\u00f3n del producto en la p\u00e1gina de producto de WooCommerce est\u00e1 siendo anulado por el CSS de Astra WooCommerce, necesitar\u00e1s a\u00f1adir el siguiente filtro al functions.php de tu sitio web. Si no est\u00e1s seguro de c\u00f3mo a\u00f1adir c\u00f3digos PHP personalizados a tu sitio web, aqu\u00ed tienes un\u00a0<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/?pTXyytedV9E9TFhT=1\">art\u00edculo\u00a0<\/a>que te guiar\u00e1n.<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_theme_woocommerce_global_h2_font', '__return_false' );<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>En versiones anteriores de Astra (anteriores a la v4.0.1), el CSS de Astra WooCommerce sol\u00eda anular el tama\u00f1o de fuente global de la etiqueta H2 en la p\u00e1gina del producto. Sin embargo, en la \u00faltima versi\u00f3n de Astra (v4.0.1), se ha introducido un filtro para solucionar este problema. Por favor, consulte la captura de pantalla adjunta para mayor claridad. Para [...]<\/p>","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","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":"","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":[2112],"docs_tag":[],"class_list":{"0":"post-153593","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-woocommerce-filters"},"spectra_custom_meta":{"wp_last_modified_info":["July 10, 2023 @ 5:27 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1688990317:89"],"rank_math_primary_docs_category":["2112"],"rank_math_seo_score":["11"],"_wplmi_last_modified":["2023-07-10 17:27:36"],"rank_math_internal_links_processed":["1"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"views":["18210"],"helpful":["4"],"unhelpful":["3"],"redirects":["0"],"rank_math_analytic_object_id":["2481"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"5bfedeb2c0a355b027f458eb742cf2ad\";s:6:\"images\";a:1:{i:0;i:153659;}}"],"pfd_related_docs":[""],"_trp_automatically_translated_slug_es_ES":["astra-woocommerce-css-overriding-global-h2-tag-font-size-on-product-page"],"_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:5:{i:0;s:14:\"core\/paragraph\";i:1;s:10:\"core\/image\";i:2;s:9:\"core\/code\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776536692\";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":"mounikak","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/mounikak\/"},"uagb_comment_info":0,"uagb_excerpt":"In previous versions of Astra (prior to v4.0.1), the Astra WooCommerce CSS used to override the global font size of the H2 tag on the product page. However, in the latest Astra version (v4.0.1), a filter has been introduced to address this issue. Please refer to the attached screenshot for better clarity. In order to&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/153593"}],"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\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=153593"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/153593\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=153593"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=153593"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=153593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}