{"id":28842,"date":"2018-08-23T00:00:00","date_gmt":"2018-08-22T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=28842"},"modified":"2021-05-01T12:19:04","modified_gmt":"2021-05-01T06:49:04","slug":"anchor-tag-inside-heading-tag","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/anchor-tag-inside-heading-tag\/","title":{"rendered":"Color de la etiqueta de anclaje dentro de la etiqueta de encabezamiento"},"content":{"rendered":"<p>Anteriormente, con Astra, los enlaces a&ntilde;adidos con la etiqueta de anclaje heredaban el color de la etiqueta de encabezamiento. Es posible que haya observado esto si ha intentado a&ntilde;adir una etiqueta de anclaje &lt;a&gt; dentro de la etiqueta de encabezamiento ( h1 - h6).<\/p>\n\n\n\n<p>Por ejemplo...<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Si se utiliza el siguiente c\u00f3digo para a\u00f1adir un enlace en el encabezamiento -<br><strong>&lt;h2&gt;Aprender del ayer &lt;a href=&quot;\/es\/&rdquo;\/#&rdquo;&quot;&gt; Vivir el presente&lt;\/a&gt; Esperanza para el ma&ntilde;ana&lt;\/h2&gt;<\/strong><\/li><li>A continuaci\u00f3n, el enlace \"Live for Today\" tendr\u00e1 el mismo color que el resto del encabezamiento.<\/li><\/ul>\n\n\n\n<p>Pero este escenario se actualiza con <strong>Tema Astra versi\u00f3n 1.4.9<\/strong> y <strong>Astra Pro versi\u00f3n 1.5.0<\/strong> A continuaci\u00f3n se ofrece informaci\u00f3n sobre las instalaciones existentes y las nuevas.<\/p>\n\n\n\n<p><strong>Para nuevas instalaciones<\/strong> - Si est\u00e1 instalando recientemente el tema Astra con la versi\u00f3n 1.4.9 y superior\/ instalando el plugin Astra Pro Addon con la versi\u00f3n 1.5.0 y superior.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>El color del enlace dentro de la etiqueta de encabezamiento ser\u00e1 <strong>diferente <\/strong>del resto de la r\u00fabrica.<\/li><li>Por ejemplo, considere el siguiente c\u00f3digo<br><strong>&lt;h2&gt;Aprender del ayer &lt;a href=&quot;\/es\/&rdquo;\/#&rdquo;&quot;&gt; Vivir el presente&lt;\/a&gt; Esperanza para el ma&ntilde;ana&lt;\/h2&gt;<\/strong><\/li><li>En el c\u00f3digo anterior, el color establecido para el encabezado ser\u00e1 <strong>no<\/strong> ser heredado por el enlace.<\/li><li>Los ajustes de color establecidos en el tema (personalizador: Colores y fondo &gt; Colores base &gt; Color del enlace) se aplicar\u00e1n al texto del enlace, por ejemplo, \"Live for Today\".<\/li><\/ul>\n\n\n\n<p><strong>Para instalaciones existentes<\/strong> - Si ya ha instalado el tema, el plugin y est\u00e1 actualizando el tema Astra a la versi\u00f3n 1.4.9 y superiores\/ actualizando el plugin Astra Pro Addon a la versi\u00f3n 1.5.0 y superiores.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Despu\u00e9s de actualizar el tema y el plugin el escenario existente no cambiar\u00e1.<\/li><li>Esto significa que el enlace dentro del encabezado heredar\u00e1 el color de la etiqueta de encabezado.<\/li><li>Si desea establecer el color del enlace tem\u00e1tico al texto del enlace dentro de la etiqueta de encabezado utilice el siguiente filtro.<\/li><\/ul>\n\n\n\n<p>Filtro para activar\/desactivar manualmente los diferentes colores de enlaces y encabezados -<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:default decode:true\">add_filter('astra_include_achors_in_headings_typography','__return_false');\n<\/pre>\n\n\n\n<p>El filtro anterior <strong>no<\/strong> permitir que el texto del enlace herede el color de la etiqueta de encabezado. El texto del enlace mostrar\u00e1 el color establecido por el tema.<\/p>\n\n\n\n<p><strong>Nota:<\/strong> A\u00f1ada el c\u00f3digo del filtro anterior a <a aria-label=\" (se abre en una nueva pesta\u00f1a)\" href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">functions.php del tema hijo<\/a> archivo.<\/p>","protected":false},"excerpt":{"rendered":"<p>Anteriormente, con Astra, los enlaces a&ntilde;adidos con la etiqueta de anclaje heredaban el color de la etiqueta de encabezamiento. Es posible que haya observado esto si ha intentado a&ntilde;adir una etiqueta de anclaje &lt;a&gt; dentro de la etiqueta de encabezamiento ( h1 - h6). Por ejemplo - Si se utiliza el siguiente c&oacute;digo para a&ntilde;adir un enlace en el encabezamiento [...]<\/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":[108],"docs_tag":[],"class_list":{"0":"post-28842","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_yoast_wpseo_primary_docs_category":["108"],"_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":["1"],"wpil_links_outbound_internal_count_data":["a:1:{i:0;a:9:{s:3:\"url\";s:75:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/#3.-in-child-theme\";s:8:\"url_real\";s:75:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/#3.-in-child-theme\";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:27:\"child theme's functions.php\";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-09-05T12:01:43+00:00"],"_edit_lock":["1571727783:25"],"_edit_last":["25"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_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_key8\";s:28:\"Spelling and Grammar Checked\";s:8:\"ppc_key7\";s:8:\"Done SEO\";}"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"_yoast_wpseo_title":["How to Change the Color of Anchor Tag Inside a Heading Tag?"],"_ht_kb_post_views_count":["6"],"_ht_kb_usefulness":["0"],"_ht_article_order_108":["28842"],"wp_last_modified_info":["May 1, 2021 @ 12:19 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["3200"],"helpful":["1"],"unhelpful":["2"],"redirects":["2"],"rank_math_primary_docs_category":["108"],"rank_math_title":["How to Change the Color of Anchor Tag Inside a Heading Tag?"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1028"],"rank_math_internal_links_processed":["1"],"_trp_automatically_translated_slug_es_ES":["etiqueta-anchor-dentro-de-la-etiqueta-heading"],"_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:9:\"core\/list\";i:2;s:17:\"core\/preformatted\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776545977\";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":"Previously with Astra, link added with the anchor tag set to inherit color from the heading tag. You might have observed this if you have tried adding an anchor tag &lt;a&gt; inside the heading tag ( h1 &#8211; h6). For example &#8211; If the following code is used to add a link in the heading&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/28842"}],"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=28842"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/28842\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=28842"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=28842"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=28842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}