• 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

Custom Link for Header

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 › Custom Link for Header

This topic is: not resolved

Tagged: header, header url, logo url

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 3 months ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 2, 2015 at 11:44 am #139422
    marketme
    Member

    Hello all,

    I have input a custom header on my website at http://www.travismarshallgroup.com/. Currently, that header/logo links to the homepage. I would like to link it off to an outside URL. Is this possible? Below is the code I am working with. Any help is greatly appreciated 🙂

    Dana

    /**********************************
    *
    * Replace Header Site Title with Inline Logo
    * Fix Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag
    * Replace "is_home" with "is_front_page" to correctly display Home page wit <h1> tag and Blog page with <p> tag
    *
    * @author AlphaBlossom / Tony Eppright
    * @link http://www.alphablossom.com
    *
    ************************************/
    add_filter( 'genesis_seo_title', 'abte_header_inline_logo', 10, 3 );
    function abte_header_inline_logo( $title, $inside, $wrap ) {

    $logo = 'The Travis Marshall Group - Long & Foster Real Estate, Avalon' . esc_attr( get_bloginfo( 'name' ) ) . '';

    $inside = sprintf( '%s', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $logo );

    //* Determine which wrapping tags to use - changed is_home to is_front_page to fix Genesis bug
    $wrap = is_front_page() && 'title' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p';

    //* A little fallback, in case an SEO plugin is active - changed is_home to is_front_page to fix Genesis bug
    $wrap = is_front_page() && ! genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : $wrap;

    //* And finally, $wrap in h1 if HTML5 & semantic headings enabled
    $wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h1' : $wrap;

    return sprintf( '<%1$s %2$s>%3$s</%1$s>', $wrap, genesis_attr( 'site-title' ), $inside );

    }

    http://www.travismarshallgroup.com
    May 6, 2015 at 3:16 pm #150477
    Susan
    Moderator

    As you posted this a while back, I hope you were able to resolve your issue. If it is resolved, please mark it "resolved", and we will close it.

    If you are still having issues, report back here, and I will try to escalate.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2026 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