WordPress.org

Support

Support » Themes and Templates » [Resolved] Changing the default link location of the header image/text

[Resolved] Changing the default link location of the header image/text

  • My roommate and I are working on a new site, and we need to change where the text in the top left corner of the content portion of the theme directs to, but all of the posts I’m finding about how to do this refer to the Twenty-Twelve or Twenty-Thirteen themes, and the coding here is slightly different.

    I’m guessing that I should be looking in header.php, and I’ve even made a child theme, all I need is the section of text that needs to be changed and I should be golden!

Viewing 1 replies (of 1 total)
  • Hey there! Since you’ve already made a copy of header.php in your child theme, to change the header link, you need to change the part that says:

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"

    To whatever link you like instead of the home_url() function. For example:

    <a href="http://google.com"

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Changing the default link location of the header image/text’ is closed to new replies.