Link for home page logo

resolved (6 posts) (6 voices)

  1. midnightpictures
    Member

    The logo at the top left of the home page default links to my homepage. I want to change the link its directing to. Where do i edit the link for the logo?

    Posted 6 years ago #
  2. Ruderic
    Support

    Hi,

    Go to the theme folder and open the file "lib/functions/theme.php". In line #611 you will find this code:

    $out .= '<a rel="home" href="' . esc_url( home_url( '/' ) ) . '"' . $class . '>';

    Replace it with:

    $out .= '<a rel="home" href="http://website.com/page/"' . $class . '>';

    Replace the placeholder URL that I wrote with your actual one. Try that and let us know the results.

    Posted 6 years ago #
  3. balticsamurai
    Member

    Worked great for Construct theme. Although the line # was different. Thanks a lot Ruderic!

    Posted 4 years ago #
  4. I'm glad it's resolved!

    Let us know if you need anything else.

    -roch

    Posted 4 years ago #
  5. tbastefanie
    Member

    I am trying to do this too; also with the Construct theme. The problem is that I don't see a theme.php in the list on the right-hand side of the Appearance-->Editor screen. I've looked all thru the code in functions.php but don't see the code referenced above. help?

    Posted 2 years ago #
  6. Elliott
    Support

    You'll need to login to your server via FTP to find the file.

    Posted 2 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme