{"id":142007,"date":"2022-12-09T13:12:43","date_gmt":"2022-12-09T07:42:43","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=142007"},"modified":"2023-01-12T11:07:02","modified_gmt":"2023-01-12T05:37:02","slug":"changing-the-post-titles-tag-of-the-related-post-section","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/changing-the-post-titles-tag-of-the-related-post-section\/","title":{"rendered":"Cambio de la etiqueta del t\u00edtulo de la entrada en la secci\u00f3n de entradas relacionadas"},"content":{"rendered":"<p>Si ha activado&nbsp;<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/display-related-posts\/?pTXyytedV9E9TFhT=1\" target=\"_blank\" rel=\"noreferrer noopener\">entradas relacionadas en su Blog<\/a>se habr\u00e1 dado cuenta de que el&nbsp;<strong>Etiqueta del t\u00edtulo de la entrada de la secci\u00f3n de entradas relacionadas<\/strong>&nbsp;tiene<strong>&nbsp;<\/strong>el&nbsp;<strong>&lt;h3&gt; etiqueta de encabezamiento&nbsp;<\/strong>asignado por defecto.<\/p>\n\n\n\n<p>Puedes modificar esta etiqueta por cualquier otra etiqueta HTML a\u00f1adiendo un filtro al archivo functions.php de tu Astra Child Theme. Si no tiene un Tema Hijo instalado y activado en su sitio web, por favor&nbsp;<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/?pTXyytedV9E9TFhT=1\">consulte este art\u00edculo sobre c\u00f3mo hacerlo<\/a>.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfC\u00f3mo puedo hacerlo?<\/h2>\n\n\n\n<p>Puede utilizar el filtro que aparece a continuaci\u00f3n para cambiar la etiqueta del t\u00edtulo de la entrada de la secci\u00f3n de entradas relacionadas por cualquier otra etiqueta. Siga estos pasos:<\/p>\n\n\n\n<p><strong>Primer paso<\/strong>&nbsp;- Vaya a Panel de control &gt; Apariencia &gt; Editor de temas y seleccione el tema hijo;<\/p>\n\n\n\n<p><strong>Paso 2<\/strong>&nbsp;- A\u00f1ada el siguiente filtro al archivo functions.php de su tema hijo. Usted puede&nbsp;<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/?pTXyytedV9E9TFhT=1#3.-in-child-theme\">consulte este art\u00edculo sobre la adici\u00f3n de c\u00f3digo a su tema infantil<\/a>&nbsp;para ayudarte;<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_related_post_title_tag', 'update_related_posts_title_tag' );\nfunction update_related_posts_title_tag(){\n    return 'span';\n}<\/code><\/pre>\n\n\n\n<p><strong>Paso 3<\/strong>&nbsp;- La <strong>span <\/strong>en el c&oacute;digo anterior se puede cambiar a cualquier etiqueta preferida. Si a&ntilde;ade return &#039;h4&#039;; , haga clic en el bot&oacute;n &quot;Actualizar archivo&quot; para aplicar los cambios. El filtro cambiar&aacute; la etiqueta por defecto &lt;h3&gt; a la etiqueta &lt;h4&gt; etiqueta. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Etiqueta por defecto<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section-1024x522.png\" alt=\"\" class=\"wp-image-142021\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section-1024x522.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section-300x153.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section-768x392.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-of-the-related-posts-section.png 1412w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Etiqueta del t\u00edtulo de la entrada de la secci\u00f3n de entradas relacionadas despu\u00e9s de a\u00f1adir el filtro<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter.png\"><img decoding=\"async\" width=\"1024\" height=\"531\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter-1024x531.png\" alt=\"\" class=\"wp-image-142072\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter-1024x531.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter-300x156.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter-768x398.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/12\/post-title-tag-with-filter.png 1404w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Si ha habilitado las entradas relacionadas en las entradas de su blog, es posible que haya notado que la etiqueta del t&iacute;tulo de la entrada de la secci&oacute;n de entradas relacionadas tiene la etiqueta&nbsp;&lt;h3&gt; asignada por defecto. Puedes modificar esta etiqueta por cualquier otra etiqueta HTML a&ntilde;adiendo un filtro al archivo functions.php de tu Astra Child Theme. Si no tienes un tema [...]<\/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":[2110],"docs_tag":[],"class_list":{"0":"post-142007","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-header-footer-filters"},"spectra_custom_meta":{"wp_last_modified_info":["January 12, 2023 @ 11:07 AM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1690869272:86"],"_wplmi_last_modified":["2023-01-12 11:07:02"],"rank_math_internal_links_processed":["1"],"rank_math_primary_docs_category":["2110"],"rank_math_seo_score":["11"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"rank_math_analytic_object_id":["2326"],"views":["12816"],"helpful":["2"],"unhelpful":["1"],"redirects":["3"],"pfd_related_docs":[""],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"6f9d44f66ad449de1bcb80f939785372\";s:6:\"images\";a:1:{i:0;i:142021;}}"],"_trp_automatically_translated_slug_es_ES":["cambiar-la-etiqueta-de-los-titulos-de-las-entradas-de-la-seccion-de-entradas-relacionadas"],"_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:9:\"core\/code\";i:3;s:10:\"core\/image\";i:4;s:14:\"uagb\/container\";i:5;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776790048\";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":"If you have enabled&nbsp;related posts on your Blog posts, you might have noticed that the&nbsp;Post Title&#8217;s Tag of the Related Post Section&nbsp;has&nbsp;the&nbsp;&lt;h3&gt; heading tag&nbsp;assigned by default. You can modify this tag to any other HTML tag by adding a filter to the functions.php file of your Astra Child Theme. If you don\u2019t have a Child&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/142007"}],"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=142007"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/142007\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=142007"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=142007"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=142007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}