• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Changes logo url for Genesis Sample Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Changes logo url for Genesis Sample Theme

This topic is: resolved

Tagged: custom logo, get_custom_logo

  • This topic has 4 replies, 2 voices, and was last updated 7 years, 1 month ago by jwiere03.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 25, 2018 at 8:57 am #223970
    jwiere03
    Member

    I am using the Genesis Sample Theme and have managed to customize it quite a bit. However I need to customize the url that the logo is linked to. I have found this script (and several variations online)

    <?php
    //* Do NOT include the opening php tag shown above. Copy the code shown below.
    //* Modify the header URL - HTML5 Version
    add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
    function child_header_title( $title, $inside, $wrap ) {
        $inside = sprintf( '<a href="http://example.com/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
        return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
    }

    But this doesn't change the link for the logo. It just adds the site title below the logo and changes that link. I don't want to add the site title I just want to customize the link for the logo. Does anyone have any advice?

    October 25, 2018 at 8:59 am #223971
    Brad Dalton
    Participant

    Are you referring to the header image or custom logo?


    Tutorials for StudioPress Themes.

    October 25, 2018 at 10:46 am #223974
    jwiere03
    Member

    Just the standard logo that you add in "Customizer > Site Identity" takes you to the homepage when you click on it.

    October 25, 2018 at 11:32 am #223976
    Brad Dalton
    Participant

    genesis_seo_title filters the link for the site title/header image not the custom logo.

    You need to use the get_custom_logo filter as seen here https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/general-template.php#L920


    Tutorials for StudioPress Themes.

    October 25, 2018 at 1:56 pm #223980
    jwiere03
    Member

    Yes thank you, when I Googled change url get_custom_logo I was able to find the right information right away.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Changes logo url for Genesis Sample Theme’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble