• 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

Prevent site title from linking to home page

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 › General Discussion › Prevent site title from linking to home page

This topic is: not resolved

Tagged: genesis_seo_title, site title, title link

  • This topic has 8 replies, 2 voices, and was last updated 8 years, 7 months ago by odnt.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • October 9, 2016 at 9:19 pm #194433
    odnt
    Member

    I would like to change the default behavior for the site title link to the home page. How do I disable the link? I assume the solution is the same for all Genesis themes.

    http://localhost
    October 10, 2016 at 3:20 am #194437
    Brad Dalton
    Participant

    Try this code


    Tutorials for StudioPress Themes.

    October 10, 2016 at 6:52 am #194441
    odnt
    Member

    Thanks Brad. I tried the code with the Aspire PRO theme, but didn't see any change in behavior. Below is the URL I used in the code:

    http://www.rickpaulson.com/development/aspire/

    October 10, 2016 at 6:53 am #194442
    Brad Dalton
    Participant

    Hi

    Where did you paste the code?

    Also, please paste the exact code here wrapped in pre opening and closing tags.


    Tutorials for StudioPress Themes.

    October 10, 2016 at 6:59 am #194446
    odnt
    Member

    I pasted the code in my functions.php file. Is there something else that's necessary? I'm not sure what "pre opening and closing tags" means.
    Thanks.

    October 10, 2016 at 7:15 am #194448
    Brad Dalton
    Participant

    Did you swap out the URL in the code correctly? Please paste the exact code you used.


    Tutorials for StudioPress Themes.

    October 10, 2016 at 7:29 am #194450
    odnt
    Member

    Here's what I added to the bottom of my functions.php file:

    //* 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://www.rickpaulson.com/development/aspire/" 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 );
    }
    October 10, 2016 at 8:01 am #194451
    Brad Dalton
    Participant

    Pretty sure it works. When i click on the aspire logo, it redirects to the custom URL.

    You might need to delete server/plugin or browser caching at your end.


    Tutorials for StudioPress Themes.

    October 10, 2016 at 8:37 am #194452
    odnt
    Member

    Okay, thanks Brad. You've provided a better understanding about what the code is designed to do.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and 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