• 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

Different Logo in Metro Pro when viewed at 320px

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 › Different Logo in Metro Pro when viewed at 320px

This topic is: resolved

Tagged: 320px, logos, Metro Pro

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 10 months ago by Doug.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 13, 2013 at 8:53 pm #62449
    Doug
    Member

    Hello,

    How do I put a different logo in the header when the site is viewed at its smallest width?

    At its smallest, I want the head on three lines:

    The Unitarian
    Church of
    Sharon, MA

    and the subhead on two lines:

    A Welcoming Congregation and a member
    of the Unitarian Universalist Association.

    I've created the png file but have no idea how or where to place the code.

    NOTE: I am using John Sundberg's functions.php code logic:

    /**
     * Filter the genesis_seo_site_title function to use an image for the logo instead of a background image
     * 
     * The genesis_seo_site_title function is located in genesis/lib/structure/header.php
     * @link http://blackhillswebworks.com/?p=4144
     *
     */
    
    	add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 );
     function bhww_filter_genesis_seo_site_title( $title, $inside ) {
     $child_inside = sprintf( '<a href="%s" title="%s"><img src="'. get_stylesheet_directory_uri() .'/images/logo.png" title="%s" alt="%s"/></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), esc_attr( get_bloginfo( 'name' ) ), esc_attr( get_bloginfo( 'name' ) ) );
     $title = str_replace( $inside, $child_inside, $title );
     return $title;
    }
    // End bhww_filter_genesis_seo_site_title

    Thanks,
    Doug

    http://uusharon.graphicsolutiongroup.com
    September 14, 2013 at 9:04 am #62514
    wpspeak
    Member

    The easiest way is to use plugin. Have you tried http://designsbynickthegeek.com/plugins/genesis-responsive-header ?
    I'm using this for one of my clients site, works great so far.


    WP Speak | Help the Awesome #Genesiswp Community

    September 14, 2013 at 10:18 am #62532
    Doug
    Member

    Thanks, wpspeak; I've tried that and it didn't work for me.

    Doug

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Different Logo in Metro Pro when viewed at 320px’ 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