{"id":103147,"date":"2021-09-01T11:39:19","date_gmt":"2021-09-01T06:09:19","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=103147"},"modified":"2023-06-12T14:44:29","modified_gmt":"2023-06-12T09:14:29","slug":"remove-underlined-content-links","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/remove-underlined-content-links\/","title":{"rendered":"\u00bfC\u00f3mo eliminar los enlaces de contenido subrayados en botones y clases espec\u00edficas?"},"content":{"rendered":"<p>Desde la versi\u00f3n 3.6.4 de Astra Theme, puedes subrayar los enlaces de tu contenido utilizando la opci\u00f3n \"Subrayar enlaces de contenido\". Se trata de una opci\u00f3n \u00fatil, especialmente desde el punto de vista de la accesibilidad de tu sitio web para usuarios con problemas de visi\u00f3n. Sin embargo, es posible que no necesite subrayar todos los enlaces.<\/p>\n\n\n\n<p>Este documento le ayudar\u00e1 a eliminar los enlaces subrayados en clases y botones espec\u00edficos.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfPor qu\u00e9 es importante?<\/h2>\n\n\n\n<p>La opci\u00f3n Subrayar enlaces de contenido le permite acentuar todos los enlaces de su sitio web con un solo clic. Puede encontrar esta opci\u00f3n en el Personalizador, en Global &gt; Tipograf\u00eda. Al activar esta opci\u00f3n, se a\u00f1ade autom\u00e1ticamente texto subrayado a los enlaces.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline-1024x487.png\" alt=\"\" class=\"wp-image-143624\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline-1024x487.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline-300x143.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline-768x365.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline-1536x731.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/01\/underline.png 1875w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Al mismo tiempo, algunos botones o anclas del constructor de p\u00e1ginas no tienen una opci\u00f3n para anular la decoraci\u00f3n del texto. Esto puede interferir en el dise\u00f1o e influir en la experiencia del usuario en algunas partes de tu sitio web.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2628\" height=\"1202\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks.png\" alt=\"Issue with underlined content\" class=\"wp-image-103152\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks.png 2628w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks-300x137.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks-1024x468.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks-768x351.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks-1536x703.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/09\/underlined-content-in-gb-blocks-2048x937.png 2048w\" sizes=\"(max-width: 2628px) 100vw, 2628px\" \/><\/figure>\n\n\n\n<p>As\u00ed pues, este documento proporciona dos c\u00f3digos que le ayudar\u00e1n a eliminar la decoraci\u00f3n de texto subrayado en determinadas clases y botones, manteniendo activa la opci\u00f3n \"Subrayar enlaces de contenido\" para el resto de su sitio web.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfC\u00f3mo cambiar esto?<\/h2>\n\n\n\n<p>Los dos c\u00f3digos disponibles le permitir\u00e1n eliminar el subrayado de los enlaces de anclaje o eliminarlo s\u00f3lo de algunos elementos espec\u00edficos.<\/p>\n\n\n\n<p>Para ello, debe a\u00f1adir uno de los siguientes c\u00f3digos personalizados al archivo functions.php de su tema hijo.<br><br>Si no tiene instalado el tema infantil, compruebe lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">este art\u00edculo<\/a> sobre c\u00f3mo hacerlo.&nbsp;<\/p>\n\n\n\n<p>Si no est\u00e1 seguro de c\u00f3mo a\u00f1adir este c\u00f3digo, consulte lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">art\u00edculo<\/a>.<\/p>\n\n\n\n<p>1. <strong>C\u00f3digo para eliminar la configuraci\u00f3n de subrayado de los siguientes enlaces de anclaje personalizados:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_unset_builder_elements_underline', '__return_true' );<\/code><\/pre>\n\n\n\n<p>2. <strong>Excluir enlaces ancla espec\u00edficos de la configuraci\u00f3n de subrayado:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_remove_underline_anchor_links', 'update_selectors_to_remove_underline', 10, 1 );\r\n\r\nfunction update_selectors_to_remove_underline( $selectors ) {\r\n\r\n$selectors = $selectors . ', a.my-first-anchor-tag, a.my-second-anchor-tag'; \r\n\r\n\/\/.my-first-anchor-tag is an example class assigned to anchor link - add your selectors in this manner.\r\n\r\nreturn $selectors;\r\n\r\n}<\/code><\/pre>\n\n\n\n<p>Debe actualizar el c\u00f3digo anterior sustituyendo los selectores del ejemplo por aquellos de los que desee eliminar la decoraci\u00f3n de texto.&nbsp;<\/p>\n\n\n\n<p>Para crear sus selectores a\u00f1ada \"a.\" delante del nombre de la clase que desea excluir del ajuste de subrayado. Por ejemplo, si la clase de tu elemento es \"test\", el selector para estos elementos ser\u00eda \"a.test\"<\/p>","protected":false},"excerpt":{"rendered":"<p>Desde la versi\u00f3n 3.6.4 de Astra Theme, puedes subrayar los enlaces de tu contenido utilizando la opci\u00f3n \"Subrayar enlaces de contenido\". Se trata de una opci\u00f3n \u00fatil, especialmente desde el punto de vista de la accesibilidad de tu sitio web para usuarios con problemas de visi\u00f3n. Sin embargo, es posible que no necesite subrayar todos los enlaces. Este documento le ayudar\u00e1 a eliminar [...]<\/p>","protected":false},"author":20,"featured_media":0,"comment_status":"open","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-103147","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-theme-pro-filters"},"spectra_custom_meta":{"wp_last_modified_info":["June 12, 2023 @ 2:44 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1686561357:86"],"_edit_last":["86"],"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":["3"],"views":["8960"],"_yoast_wpseo_primary_docs_category":["2109"],"_yoast_wpseo_title":["How To Remove Underlined Content Links"],"_yoast_wpseo_metadesc":["Remove underlines for links with custom code in Astra. Check now"],"helpful":["14"],"unhelpful":["21"],"redirects":["20"],"rank_math_primary_docs_category":["2109"],"rank_math_title":["How To Remove Underlined Content Links"],"rank_math_description":["Remove underlines for links with custom code in Astra. Check now"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["130"],"rank_math_internal_links_processed":["1"],"_wplmi_last_modified":["2023-06-12 14:44:29"],"rank_math_seo_score":["16"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"e04bbcb68e97827496152665a756b3f2\";s:6:\"images\";a:1:{i:0;i:143624;}}"],"pfd_related_docs":[""],"_trp_automatically_translated_slug_es_ES":["eliminar-los-enlaces-de-contenido-subrayados"],"_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:12:\"core\/heading\";i:2;s:10:\"core\/image\";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:\"1776962221\";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":"Since the Astra Theme version 3.6.4, you can underline the links in your content using the \u201cUnderline Content Links\u201d option. This is a useful option especially from the point of your website\u2019s accessibility for visually impaired users. Yet, you might not need to have all of your links underlined. This document will help you remove&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/103147"}],"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=103147"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/103147\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=103147"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=103147"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=103147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}