{"id":94496,"date":"2021-06-25T16:19:04","date_gmt":"2021-06-25T10:49:04","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=94496"},"modified":"2021-09-21T22:24:31","modified_gmt":"2021-09-21T16:54:31","slug":"change-tag-for-related-posts-title","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/change-tag-for-related-posts-title\/","title":{"rendered":"\u00bfC\u00f3mo cambiar la etiqueta Heading para el t\u00edtulo de las entradas relacionadas?"},"content":{"rendered":"<p>Si ha activado <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/display-related-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\">entradas relacionadas en su Blog<\/a>se habr\u00e1 dado cuenta de que el <strong>Related Posts T\u00edtulo<\/strong> tiene<strong> <\/strong>el <strong>&lt;h2&gt; etiqueta de encabezamiento <\/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 <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">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>Puedes usar el filtro de abajo para cambiar la etiqueta del T\u00edtulo de las Entradas Relacionadas a cualquier otra etiqueta. Por favor, sigue estos pasos:<\/p>\n\n\n\n<p><strong>Primer paso<\/strong> - 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> - A\u00f1ada el siguiente filtro al archivo functions.php de su tema hijo. Usted puede <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">consulte este art\u00edculo sobre la adici\u00f3n de c\u00f3digo a su tema infantil<\/a> para ayudarte;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Filtro para cambiar la etiqueta de t&iacute;tulo de los posts relacionados.\nadd_filter( &#039;astra_related_posts_title&#039;, &#039;update_related_posts_title_markup&#039;, 10, 1 );\nfunction update_related_posts_title_markup( $markup ) {\n    $markup = &#039;&lt;div class=&quot;ast-related-posts-title-section&quot;&gt;&#039;;\n     $markup .= &#039;&lt;h4 class=&quot;ast-related-posts-title&quot;&gt;&#039;; \/\/ Sustituye H4 por la etiqueta que necesites.\n $markup .= &#039;Entradas Relacionadas&#039;;\n $markup .= &#039;&lt;\/h4&gt;&#039;; \/\/ Sustituya H4 por la etiqueta que necesite.\n    $markup .= &#039;&lt;\/div&gt;&#039;;\n    return $markup;\n}<\/pre>\n\n\n\n<p><strong>Paso 3<\/strong> - El filtro cambiar&aacute; el valor por defecto &lt;h2&gt; etiqueta a &lt;h4&gt; etiqueta. Actual&iacute;cela sustituyendo &lt;h4&gt; en el c&oacute;digo con cualquier etiqueta de encabezamiento necesaria. Pulse el bot&oacute;n &quot;Actualizar archivo&quot; para aplicar los cambios.<\/p>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__outer-wrap uagb-inline_notice__align-left uagb-block-99a07967\"><h4 class=\"uagb-notice-title\">Nota:<\/h4><div class=\"uagb-notice-text\"><p>Tenga en cuenta que debe sustituir la etiqueta h4 por la etiqueta que necesite en ambos lugares del c&oacute;digo para que funcione: uno es la etiqueta de apertura y el otro es la etiqueta de cierre (como hemos hecho nosotros). &lt;h4&gt; en ambos lugares del c&oacute;digo anterior).<\/p><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Etiqueta por defecto<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-default.png\" alt=\"Astra Theme - Related Posts Title Default Tag, Astra 3.0+\" class=\"wp-image-94542\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-default.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-default-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-default-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-default-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Etiqueta de encabezamiento despu\u00e9s de a\u00f1adir el filtro<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1366\" height=\"715\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-filter.png\" alt=\"Astra Theme - Related Posts Title Tag with Added Filter, Astra 3.0+\" class=\"wp-image-94543\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-filter.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-filter-300x157.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-filter-1024x536.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/ast-3-6-related-title-tag-filter-768x402.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>Si has activado las entradas relacionadas en las entradas de tu blog, te habr&aacute;s dado cuenta de que el t&iacute;tulo de las entradas relacionadas tiene el icono &lt;h2&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 [...]<\/p>","protected":false},"author":70,"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":[2110],"docs_tag":[],"class_list":{"0":"post-94496","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-header-footer-filters"},"spectra_custom_meta":{"wp_last_modified_info":["September 21, 2021 @ 10:24 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1635781075:70"],"_edit_last":["20"],"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":["2"],"_wp_old_slug":["how-to-change-the-heading-tag-for-the-related-post-title","change-tag-for-related-post-title"],"views":["3857"],"helpful":["1"],"unhelpful":["3"],"redirects":["2"],"_yoast_wpseo_primary_docs_category":["2110"],"rank_math_primary_docs_category":["2110"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["233"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"05b19e3ff3d1035e4520faba246146f6\";s:6:\"images\";a:1:{i:0;i:94542;}}"],"_trp_automatically_translated_slug_es_ES":["cambiar-la-etiqueta-del-titulo-de-las-entradas-relacionadas"],"_uag_page_assets":["a:9:{s:3:\"css\";s:3704:\" .uagb-block-99a07967.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-99a07967 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;border: 2px solid #FFD54F;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-99a07967.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-99a07967.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-99a07967 .uagb-notice-title{background-color: #FFD54F;border-top-right-radius: 3px;border-top-left-radius: 3px;}@media only screen and (max-width: 976px) { .uagb-block-99a07967 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-99a07967 .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-99a07967 .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-99a07967 .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}.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:271:\"document.addEventListener(\"DOMContentLoaded\", function(){ window.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-99a07967' );\n});\n });\";s:18:\"current_block_list\";a:7:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:17:\"core\/preformatted\";i:3;s:18:\"uagb\/inline-notice\";i:4;s:10:\"core\/image\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776563598\";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":"Nikola Mihajlovic","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/nikolam\/"},"uagb_comment_info":0,"uagb_excerpt":"If you have enabled related posts on your Blog posts, you might have noticed that the Related Posts Title has the &lt;h2&gt; heading tag 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&#8217;t have a&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/94496"}],"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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=94496"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/94496\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=94496"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=94496"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=94496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}