• Hi

    I am just looking to find out how you change the logo to link to another URL please??

    Can’t find it in the code anywhere.

    Thanks
    Simon

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • First, make sure you have created a Child Theme! Once you have your Child Theme in place, open structure/header.php file and navigate to line number 43 which says:

    echo '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a></h1>';

    and change this to something like:

    echo '<h1 class="site-title"><a href="https://gotomysite.com" title="mysite" rel="home">mysite.com</a></h1>';

    Change all instances of mysite with what you have.

    Let me know if this helps.

    Thread Starter SWJ

    (@swj)

    Thanks for getting back to me but there is no code listed above.

    In my header.php file I have the following:

    <body <?php body_class(); ?>>

    <?php do_action( ‘shop_isle_before_header’ ); ?>

    <!– Preloader –>
    <?php

    global $wp_customize;

    /* Preloader */
    if(is_front_page() && !isset( $wp_customize ) && get_option( ‘show_on_front’ ) != ‘page’ ):

    $shop_isle_disable_preloader = get_theme_mod(‘shop_isle_disable_preloader’);

    if( isset($shop_isle_disable_preloader) && ($shop_isle_disable_preloader != 1) ):

    echo ‘<div class=”page-loader”>’;
    echo ‘<div class=”loader”>’.__(‘Loading…’,’shop-isle’).'</div>’;
    echo ‘</div>’;

    endif;

    endif;

    ?>

    <?php do_action( ‘shop_isle_header’ ); ?>

    <?php do_action( ‘shop_isle_after_header’ ); ?>

    Hi, unfortunately you are looking at the wrong file. This file I mentioned is here:
    wp-content/themes/shop-isle/structure/header.php

    Again, do not make changes to this original file. Updating the theme will erase all your changes. Create a child theme first and then make your changes to make sure they stay intact.

    Thread Starter SWJ

    (@swj)

    Hi, I don’t have a directory called ‘structure’….

    Oops! Sorry. The exact path to the mentioned file is:
    wp-content/themes/shop-isle/inc/structure/header.php

    Here is a screenshot: https://prnt.sc/g6qh0t

    Thread Starter SWJ

    (@swj)

    Hi, thanks again but the change has done nothing though!

    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Logo Link’ is closed to new replies.