How do I change homepage link (/) to an external link to another site in this code?
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="site-title site-logo-text" <?php echo esc_attr( $header_text_color ); ?>><?php echo esc_html( get_bloginfo( 'name' ) ); ?></a>
3
Answers
If you have fixed url for the external link, you don’t have to put it inside
Just put it inside the href attribute like so and that should do it
If you want that link to point to another (external) resource, then make it simple, remove the unnecessary PHP code and put the URI in the
href
attribute. As I putHTTPS://EXAMPLE.COM/
below.