Yes, you are in the right direction.
In your header.php
there are two lines written like this:
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif;
You need to change <?php echo esc_url(home_url('/')) ?>
to the web address you want.
Remember, there is a check <?php if ( is_front_page() && is_home() ) : ?>
, which means WordPress will check whether you are on the home page or not. So if you want your logo / site name to always redirect to another URL / site, you need to change both lines.
So in your case those two lines would look like following:
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="https://another-site.com" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="https://another-site.com" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif;
IMPORTANT: Always create Child Theme before customizing because all your changes are GONE when you update the theme!
Hope this helps!
-
This reply was modified 8 years ago by
Subrata Sarkar. Reason: Rearranged code block