• Resolved krakenexe

    (@krakenexe)


    Greetings,

    I’m using SOHO for a client theme, and I’m trying to make the inside “SOHO” logo link externally, and have changed the code from
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>
    to the code of
    <a href="<?php echo esc_url('www.facebook.com') ); ?>"
    and it continues to link back to the home_url, which is mind boggling for me.

    I appreciate any and all help, and especially if you bothered to read this. Thank you.

    Link for theme in question SOHO

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jason King

    (@jasoncharlesstuartking)

    Keep it simple. You need the http bit, but you don’t need the php:

    <a href="http://www.facebook.com">

    (Hope you’re editing a child theme, not the original theme.)

    Thread Starter krakenexe

    (@krakenexe)

    I just checked to make sure I was editing through the Child Theme, and I wasn’t so I created one and got that going. (Thank you so much for the tip)

    But I also ended up changing the header.php through the child theme and it doesn’t look like that anchor tag change worked at all, here’s the full length anchor tag if that would change anything.

    <a href="www.facebook.com" class="logo"><img src="<?php gt3_the_theme_option("logo"); ?>" alt="" width="<?php gt3_the_theme_option("header_logo_standart_width"); ?>" height="<?php gt3_the_theme_option("header_logo_standart_height"); ?>" class="logo_def"><img src="<?php gt3_the_theme_option("logo_retina"); ?>" alt="" width="<?php gt3_the_theme_option("header_logo_standart_width"); ?>" height="<?php gt3_the_theme_option("header_logo_standart_height"); ?>" class="logo_retina"></a>

    Jason King

    (@jasoncharlesstuartking)

    Re-read my code. See what you missed?

    Thread Starter krakenexe

    (@krakenexe)

    But all of the php calls in there are for resizing the image, the anchor tag is simple now…

    Thread Starter krakenexe

    (@krakenexe)

    I found out that it was how the theme was laid out, thank you for all your help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Changing Logo URL Link’ is closed to new replies.