{"id":165324,"date":"2023-10-31T14:09:10","date_gmt":"2023-10-31T08:39:10","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=165324"},"modified":"2023-10-31T15:02:42","modified_gmt":"2023-10-31T09:32:42","slug":"change-the-home-string-in-breadcrumbs","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/change-the-home-string-in-breadcrumbs\/","title":{"rendered":"C\u00f3mo cambiar la cadena \"HOME\" en las migas de pan"},"content":{"rendered":"<p>Las migas de pan son una forma \u00fatil para que los usuarios sigan su camino a trav\u00e9s de un sitio web y comprendan su jerarqu\u00eda. Por defecto, muchos temas de WordPress muestran \"HOME\" como elemento ra\u00edz en las migas de pan. Sin embargo, es posible que desee cambiar esto a algo m\u00e1s espec\u00edfico o adecuado para su sitio web.<\/p>\n\n\n\n<p>Esta gu\u00eda le mostrar\u00e1 c\u00f3mo cambiar la cadena \"HOME\" en las migas de pan utilizando el filtro astra_breadcrumb_trail_labels en su sitio web WordPress.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"433\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-1024x433.png\" alt=\"How to Change the &quot;HOME&quot; String in Breadcrumbs\" class=\"wp-image-165339\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-1024x433.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-300x127.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-768x324.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-1536x649.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-18x8.png 18w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb.png 1887w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Le proporcionaremos instrucciones paso a paso y un fragmento de c\u00f3digo para ayudarle a empezar.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-165324-_mlbalq6mdujz\"><\/a><strong>C\u00f3mo cambiar la cadena \"HOME\" en las migas de pan<\/strong><\/h3>\n\n\n\n<p>Antes de continuar, debe asegurarse de que dispone de un sitio web WordPress que utiliza la plataforma <a href=\"https:\/\/wordpress.org\/themes\/astra\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/themes\/astra\/\">Tema Astra<\/a> y tienes acceso administrativo a tu panel de WordPress.<\/p>\n\n\n\n<p>A continuaci\u00f3n, puede seguir los siguientes pasos para cambiar la cadena \"HOME\" en las migas de pan:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inicie sesi\u00f3n en el panel de administraci\u00f3n de WordPress con sus credenciales.<\/li>\n\n\n\n<li>En el panel de WordPress, vaya a \"Apariencia\" y seleccione \"Editor de archivos de temas\".<\/li>\n\n\n\n<li>En el Editor de temas, deber\u00eda ver una lista de archivos de tema a la derecha. Localiza y selecciona el archivo `functions.php` de la lista.<\/li>\n\n\n\n<li>Dentro del archivo `functions.php`, puede a\u00f1adir el siguiente fragmento de c\u00f3digo:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-5-color has-ast-global-color-8-background-color has-text-color has-background\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_breadcrumb_trail_labels', function( $args ) {\n\t$args&#91;'home'] = __( 'Index', 'astra' );\n\treturn $args;\n\t});<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Este c\u00f3digo utiliza la funci\u00f3n `add_filter` para modificar la etiqueta \"HOME\" de las migas de pan por \"Index\". Puede sustituir \"\u00cdndice\" por cualquier texto de su elecci\u00f3n.<\/li>\n\n\n\n<li>Despu\u00e9s de a\u00f1adir el fragmento de c\u00f3digo, haga clic en el bot\u00f3n \"Actualizar archivo\" para guardar los cambios.<\/li>\n<\/ul>\n\n\n\n<p><strong>Por ejemplo: <\/strong>Consideremos que mi sitio web tiene una p\u00e1gina \"Construcci\u00f3n\" como se adjunta en este <a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-1536x649.png\" data-type=\"link\" data-id=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-1536x649.png\">captura de pantalla<\/a>. Ahora, si quiero cambiar la cadena 'HOME' del breadcrumb por 'New Flat', sustituir\u00e9 'Index' por 'New Flat' en el fragmento de c\u00f3digo.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"451\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-1024x451.png\" alt=\"\" class=\"wp-image-165346\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-1024x451.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-300x132.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-768x338.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-1536x676.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2-18x8.png 18w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/breadcrumb-2.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Entonces, mi p\u00e1gina ser\u00eda as\u00ed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"431\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-1024x431.png\" alt=\"\" class=\"wp-image-165347\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-1024x431.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-300x126.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-768x323.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-1536x647.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1-18x8.png 18w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/10\/updated-breadcrumb-1.png 1891w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Nota:<\/strong> El c\u00f3digo personalizado anterior puede a\u00f1adirse a trav\u00e9s de un tema hijo, <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/custom-layouts-pro\/\" data-type=\"link\" data-id=\"https:\/\/git-staging.wpastra.com\/docs\/custom-layouts-pro\/\">Dise\u00f1o personalizado<\/a>o plugin de fragmentos de c\u00f3digo. <\/p>\n\n\n\n<p>Hay que tener mucho cuidado al editar los archivos del tema. Haz siempre una copia de seguridad de tu sitio web o de los archivos del tema antes de realizar cualquier cambio, y aseg\u00farate de que sabes c\u00f3mo modificar el c\u00f3digo.<\/p>\n\n\n\n<p>Si tiene problemas despu\u00e9s de realizar estos cambios, elimine el fragmento de c\u00f3digo del archivo functions.php para volver al estado original.<\/p>\n\n\n\n<p>El filtro astra_breadcrumb_trail_labels es s\u00f3lo para el tema Astra. Si utilizas un tema diferente, consulta su documentaci\u00f3n o los recursos de soporte para una funcionalidad similar.<\/p>","protected":false},"excerpt":{"rendered":"<p>Las migas de pan son una forma \u00fatil para que los usuarios sigan su camino a trav\u00e9s de un sitio web y entiendan su jerarqu\u00eda. Por defecto, muchos temas de WordPress muestran \"HOME\" como elemento ra\u00edz en las migas de pan. Sin embargo, es posible que desee cambiar esto a algo m\u00e1s espec\u00edfico o adecuado para su sitio web. Esta gu\u00eda le mostrar\u00e1 c\u00f3mo cambiar [...]<\/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":"default","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":"set","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":[1571],"docs_tag":[],"class_list":{"0":"post-165324","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-breadcrumb"},"spectra_custom_meta":{"wp_last_modified_info":["October 31, 2023 @ 3:02 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1698744785:89"],"rank_math_primary_docs_category":["1571"],"rank_math_seo_score":["21"],"_wplmi_last_modified":["2023-10-31 15:02:42"],"rank_math_internal_links_processed":["1"],"_uag_custom_page_level_css":[""],"_lmt_disableupdate":[""],"_lmt_disable":[""],"ast-site-content-layout":["default"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"views":["4419"],"_wp_old_slug":["how-to-change-the-home-string-in-breadcrumbs"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"418fe61ad8bb554359f5e152802c5453\";s:6:\"images\";a:1:{i:0;i:165339;}}","a:2:{s:5:\"check\";s:32:\"418fe61ad8bb554359f5e152802c5453\";s:6:\"images\";a:1:{i:0;i:165339;}}"],"pfd_related_docs":[""],"helpful":["3"],"unhelpful":["5"],"redirects":["1"],"_trp_automatically_translated_slug_es_ES":["cambiar-la-cadena-de-inicio-en-las-migas-de-pan"],"_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:8:{i:0;s:14:\"core\/paragraph\";i:1;s:10:\"core\/image\";i:2;s:12:\"core\/heading\";i:3;s:9:\"core\/list\";i:4;s:14:\"core\/list-item\";i:5;s:9:\"core\/code\";i:6;s:14:\"uagb\/container\";i:7;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776807380\";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":"Breadcrumbs are a helpful way for users to track their path through a website and understand its hierarchy. By default, many WordPress themes display &#8220;HOME&#8221; as the root element in breadcrumbs. However, you may want to change this to something more specific or suitable for your website. This guide will show you how to change&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/165324"}],"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=165324"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/165324\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=165324"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=165324"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=165324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}