{"id":665,"date":"2017-02-23T00:00:00","date_gmt":"2017-02-22T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/docs\/?p=665"},"modified":"2023-09-22T16:56:20","modified_gmt":"2023-09-22T11:26:20","slug":"change-website-logo-destination-url","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/change-website-logo-destination-url\/","title":{"rendered":"C\u00f3mo cambiar la URL de destino del logotipo del sitio web"},"content":{"rendered":"<p>El logotipo de su sitio web no es s\u00f3lo una imagen; es una importante herramienta de marca. A veces, puede que necesites cambiar a d\u00f3nde lleva el logotipo a los visitantes de tu sitio web cuando hacen clic en \u00e9l. <\/p>\n\n\n\n<p>Ya sea debido a cambios en el sitio o a asociaciones, personalizar la URL de destino de su logotipo es una decisi\u00f3n inteligente. <\/p>\n\n\n\n<p>Esta gu\u00eda le mostrar\u00e1 c\u00f3mo cambiar la URL de destino del logotipo del sitio web sin esfuerzo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-665-_d4exz2hqrejg\"><\/a><strong>\u00bfCu\u00e1les son los pasos para cambiar la URL de destino del logotipo del sitio web?<\/strong><\/h3>\n\n\n\n<p>Siguiendo los sencillos pasos que se indican a continuaci\u00f3n, podr\u00e1 personalizar sin esfuerzo la URL de su logotipo y controlar por completo la imagen de marca y la funcionalidad de su sitio web.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Acceda al panel de administraci\u00f3n de su sitio web.<\/li>\n\n\n\n<li>Localice y haga clic en \"Apariencia\" en el men\u00fa de la izquierda. A continuaci\u00f3n, seleccione <strong>Editor de temas<\/strong>.<\/li>\n\n\n\n<li>Seleccione el tema Astra Child en el men\u00fa desplegable y haga clic en <strong>Seleccione <\/strong>para elegirlo.<\/li>\n\n\n\n<li>Navegue hasta el archivo functions.php del tema hijo, desde la secci\u00f3n de la derecha seleccionando <strong>funciones.php<\/strong>.<\/li>\n\n\n\n<li>A\u00f1ada el c\u00f3digo proporcionado a continuaci\u00f3n en la parte inferior del archivo y haga clic en <strong>Actualizar archivo<\/strong> en la parte inferior.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-video\"><video autoplay loop muted src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/09\/functions.php-file.webm\"><\/video><\/figure>\n\n\n\n<p>Para los usuarios con el tema Astra versi\u00f3n inferior a 3.0.0 -<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_action('astra_masthead', 'astra_logo_change_url');\n\nfunction astra_logo_change_url()\n{\nremove_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 );\nadd_filter( 'home_url', 'astra_logo_custom_url' );\nadd_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 );\n}\n\nfunction astra_logo_custom_url( $url ) \n{\nreturn 'https:\/\/google.com';\n}\nadd_action('astra_masthead_content','astra_remove_logo_custom_url',9);\nfunction astra_remove_logo_custom_url()\n{\nremove_filter( 'home_url', 'astra_logo_custom_url' );\n}\n<\/code><\/pre>\n\n\n\n<p>Para nuevos usuarios con el tema Astra versi\u00f3n 3.0.0 y superior, utilizando el Header Footer Builder -<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_action('astra_masthead', 'astra_logo_change_url'); \nadd_action('astra_mobile_header_bar_top', 'astra_logo_change_url'); \nfunction astra_logo_change_url()\n{ \nremove_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); \nadd_filter( 'home_url', 'astra_logo_custom_url' ); \nadd_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); \n} \nfunction astra_logo_custom_url( $url ) \n{ \nreturn '<a href=\"https:\/\/google.com\">https:\/\/google.com<\/a>'; \n} \nadd_filter('astra_logo','astra_remove_logo_custom_url'); \nfunction astra_remove_logo_custom_url( $html )\n{ \nremove_filter( 'home_url', 'astra_logo_custom_url' ); \nreturn $html; \n}<\/code><\/pre>\n\n\n\n<p>Aseg\u00farese de sustituir la URL de prueba (http:\/\/google.com) por su URL de destino en el c\u00f3digo anterior.<\/p>\n\n\n\n<p>Puede seguir las instrucciones proporcionadas en este <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">documento <\/a>para insertar el c\u00f3digo en el archivo functions.php de su tema hijo.<\/p>","protected":false},"excerpt":{"rendered":"<p>El logotipo de su sitio web no es s\u00f3lo una imagen; es una importante herramienta de marca. A veces, es posible que necesite cambiar a d\u00f3nde lleva su logotipo a los visitantes de su sitio web cuando hacen clic en \u00e9l. Ya sea debido a cambios en el sitio o a asociaciones, personalizar la URL de destino de su logotipo es una decisi\u00f3n inteligente. Esta gu\u00eda le mostrar\u00e1 c\u00f3mo [...]<\/p>","protected":false},"author":43,"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":"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":"default","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":[2110],"docs_tag":[],"class_list":{"0":"post-665","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-header-footer-filters"},"spectra_custom_meta":{"_wp_old_slug":["","astra_logo_url","astra-logo-url"],"_wp_page_template":["default"],"_edit_lock":["1695381968:89"],"_edit_last":["89"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"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"],"_ppc_meta_key":["a:11:{s:8:\"ppc_key5\";s:37:\"Title is Catchy and Slug is Optimized\";s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key3\";s:28:\"Category and Author Selected\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:20:\"ppc_key5ddf5ba19a347\";s:9:\"TOC Added\";s:20:\"ppc_key5ddf5b93dc6a6\";s:21:\"Affiliate Links Added\";s:20:\"ppc_key5ddf5c326920c\";s:59:\"Headings are in title-case and have appropriate heading tag\";}"],"_elementor_controls_usage":["a:0:{}"],"_yoast_wpseo_estimated-reading-time-minutes":["1"],"_ht_kb_post_views_count":["10"],"_ht_kb_usefulness":["0"],"_ht_article_order_103":["665"],"wp_last_modified_info":["September 22, 2023 @ 4:56 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["6513"],"helpful":["3"],"unhelpful":["37"],"redirects":["12"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2023-09-22 16:56:20"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1439"],"rank_math_seo_score":["20"],"rank_math_internal_links_processed":["1"],"_wpml_media_duplicate":["1"],"rank_math_primary_docs_category":["2110"],"_uag_custom_page_level_css":[""],"_lmt_disable":[""],"ast-site-content-layout":["default"],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"rank_math_schema_VideoObject":["a:12:{s:5:\"@type\";s:11:\"VideoObject\";s:8:\"metadata\";a:8:{s:5:\"title\";s:5:\"Video\";s:4:\"type\";s:8:\"template\";s:9:\"shortcode\";s:15:\"s-650d4a6221672\";s:9:\"isPrimary\";b:1;s:23:\"reviewLocationShortcode\";s:24:\"[rank_math_rich_snippet]\";s:8:\"category\";s:12:\"%categories%\";s:4:\"tags\";s:6:\"%tags%\";s:15:\"isAutoGenerated\";b:1;}s:4:\"name\";s:11:\"%seo_title%\";s:11:\"description\";s:17:\"%seo_description%\";s:10:\"uploadDate\";s:20:\"%date(Y-m-dTH:i:sP)%\";s:12:\"thumbnailUrl\";s:16:\"%post_thumbnail%\";s:8:\"embedUrl\";s:0:\"\";s:10:\"contentUrl\";s:82:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/09\/functions.php-file.webm\";s:8:\"duration\";s:0:\"\";s:5:\"width\";i:1280;s:6:\"height\";i:562;s:16:\"isFamilyFriendly\";b:1;}"],"_trp_automatically_translated_slug_es_ES":["cambiar-el-logotipo-del-sitio-web-url-de-destino"],"_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:12:\"core\/heading\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:10:\"core\/video\";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:\"1776609740\";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":"Team Astra","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/astra-editorial\/"},"uagb_comment_info":0,"uagb_excerpt":"Your website&#8217;s logo isn&#8217;t just an image; it&#8217;s an important branding tool. Sometimes, you might need to change where your logo takes your website visitors when they click on it. Whether it&#8217;s due to site changes or partnerships, customizing your logo&#8217;s destination URL is a smart move. This guide will walk you through how to&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/665"}],"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\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/665\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=665"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}