{"id":55726,"date":"2020-02-12T13:36:01","date_gmt":"2020-02-12T08:06:01","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=55726"},"modified":"2021-09-08T20:28:09","modified_gmt":"2021-09-08T14:58:09","slug":"remove-featured-image-link-on-blog-page","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/remove-featured-image-link-on-blog-page\/","title":{"rendered":"Filtro para eliminar el enlace de las im\u00e1genes destacadas en la p\u00e1gina del blog"},"content":{"rendered":"<p>\u00bfVes el enlace predeterminado en la imagen destacada de la p\u00e1gina de entradas del blog?<\/p>\n\n\n\n<p><strong>\u00bfPor qu\u00e9?<\/strong><\/p>\n\n\n\n<p>Las Im\u00e1genes Destacadas a\u00f1adidas a cada entrada son un enlace a la misma entrada.<\/p>\n\n\n\n<p><strong>\u00bfC\u00f3mo se limpia?<\/strong><\/p>\n\n\n\n<p>De la versi\u00f3n Astra Theme - <code>2.2.2<\/code> proporcionamos un filtro mediante el cual se puede eliminar el enlace a la entrada.<\/p>\n\n\n\n<p><strong>Filtrar:<\/strong> Se ha a\u00f1adido el filtro para eliminar el enlace de la imagen destacada en la p\u00e1gina del blog.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**\n  * Eliminar HTML antes de la etiqueta para el enlace.\n  * @param string $markup markup of post.\n  * @return string\n  *\/\nfunction astra_remove_link_before( $markup ) {\n    $markup = __return_empty_string();\n    return $markup;\n}\n\n\/**\n  * Eliminar HTML despu\u00e9s de la etiqueta para el enlace.\n  * @param string $markup markup of post.\n  * @return string\n  *\/\nfunction astra_remove_link_after( $markup ) {\n    $markup = __return_empty_string();\n    return $markup;\n}\n\nadd_filter( 'astra_blog_post_featured_image_link_before', 'astra_remove_link_before' );\nadd_filter( 'astra_blog_post_featured_image_link_after', 'astra_remove_link_after' );<\/pre>\n\n\n\n<p style=\"background-color:#f6ecff\" class=\"has-background\"><strong>Nota:<\/strong>&nbsp;A\u00f1ade el filtro anterior al archivo functions.php de tu tema hijo, aqu\u00ed tienes un art\u00edculo que te ayudar\u00e1&nbsp;<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">A\u00f1adir c\u00f3digo personalizado<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u00bfVes el enlace predeterminado en la imagen destacada de la p\u00e1gina de entradas del blog? \u00bfPor qu\u00e9? Las Im\u00e1genes Destacadas a\u00f1adidas a cada entrada tienen establecido un enlace a la misma entrada. \u00bfC\u00f3mo borrarlo? Desde la versi\u00f3n Astra Theme - 2.2.2 proporcionamos un filtro mediante el cual el enlace al post puede ser [...]<\/p>","protected":false},"author":39,"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":[2111],"docs_tag":[],"class_list":{"0":"post-55726","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-blog-filters"},"spectra_custom_meta":{"_edit_lock":["1631113089:70"],"_edit_last":["70"],"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"],"_elementor_controls_usage":["a:0:{}"],"_wp_old_date":["2020-02-07"],"_ht_kb_post_views_count":["5"],"_ht_kb_usefulness":["0"],"_ht_article_order_103":["55726"],"wp_last_modified_info":["September 8, 2021 @ 8:28 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["3992"],"helpful":["1"],"unhelpful":["1"],"redirects":["2"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2021-09-08 20:28:09"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["703"],"rank_math_internal_links_processed":["1"],"_trp_automatically_translated_slug_es_ES":["eliminar-el-enlace-a-la-imagen-destacada-en-la-pagina-del-blog"],"_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:4:{i:0;s:14:\"core\/paragraph\";i:1;s:17:\"core\/preformatted\";i:2;s:14:\"uagb\/container\";i:3;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1777434211\";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":"Suman","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/sumand\/"},"uagb_comment_info":0,"uagb_excerpt":"Do you see the default link on the Featured Image of the Posts on Blog Page? Why? The Featured Images added to each post are set a link to the same post. How to clear? From the Astra Theme version &#8211; 2.2.2 we providing a filter using which the link to the post can be&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/55726"}],"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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=55726"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/55726\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=55726"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=55726"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=55726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}