WordPress.org

Ready to get started?Download WordPress

Forums

Expound
[resolved] Changing the default link location of the header image/text (2 posts)

  1. bcosler
    Member
    Posted 8 months ago #

    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!

  2. Konstantin Kovshenin
    Member
    Theme Author

    Posted 8 months ago #

    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!

Reply

You must log in to post.

About this Theme

About this Topic