• Resolved hendryhowser

    (@hendryhowser)


    I need to change the default link on logo header, can i do that?

    i’m using virtue free child theme, and i think that i have to copy the php file to the theme folder and doing some changes with the logo site url.

    i check the header.php and it’s empty. so what is the name of the php file?

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hey,
    You would need to copy the file from header.php in the parent theme and paste it into your child theme and edit line: 58 changing: <?php echo home_url(); ?> with your link.
    Does that work for you?

    Hannah

    Thread Starter hendryhowser

    (@hendryhowser)

    Hi Hannah,
    it doesn’t work.
    the link still refers to the front page.

    thanks

    hannah

    (@hannahritner)

    Hmm…did you clear your cache? Do you mind posting a link?

    Hannah

    Did you put the templates/header.php file into a child theme templates folder?

    Kadence Themes

    Thread Starter hendryhowser

    (@hendryhowser)

    hi Hannah, i can’t give you a link because it’s still offline. I’m using xampp.

    yes, i put the copied templates/header.php from into my root child theme folder. do i have to make templates folder and put the file into that folder?

    Yes, you have to have a templates folder in the child theme for it to override the parent.

    Kadence Themes

    Thread Starter hendryhowser

    (@hendryhowser)

    Nice.. it works.
    many many thanks for all of you.
    ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change default link of logo header’ is closed to new replies.