• 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

Override Genesis Title, Description and link for multisite

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 › Override Genesis Title, Description and link for multisite

This topic is: not resolved

Tagged: description, multi site, Title Area

  • This topic has 1 reply, 2 voices, and was last updated 8 years ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 6, 2017 at 9:34 am #214312
    sahdow
    Participant

    I have a multi-site install being configured as a segmented single site running a single Genesis child theme. I have used the below code to modify the hyperlink target but haven't been able to figure out how to change the title and description to pull from site 1 instead of the subsite you are on.

    Can anyone help with this?

    /** Modify the header URL */
    
    add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
    
    function child_header_title( $title, $inside, $wrap ) {
    
        $inside = sprintf( '<a href="https://marketingbent.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 );
    
    }
    December 6, 2017 at 11:27 am #214315
    Victor Font
    Moderator

    You can't without a lot of custom code. In multisite, the primary site has its own tableset as does each subsite. Even though they are all in the same database, the tablesets are not connected and each site is treated as its own site. You would have to write custom SQL and execute a $wpdb query to pull data out of a different tableset. Since you're using a single theme, you would only have to write the code once and run it conditionally depending on the site being accessed.

    Look at your multisite database structure with PHPMyAdmin and you'll see what I'm talking about. The site title and description are stored in each site's respective options table.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ 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