• 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

Header Image with Text – News 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 › General Discussion › Header Image with Text – News Theme

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by ᴅᴀᴠɪᴅ.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 1, 2016 at 12:48 pm #180354
    VisualFish
    Member

    Good Morning Team!

    TIA for any help you can provide.

    I am using the News Theme and I would like to put a logo next to the text in my header. I tried using the background image but that distorts the image.

    An example of what I'm trying to achieve is on this very page. At the top of the forum page you see the STUDIOPRESS name but with a small image beside it. That is what I'm trying to achieve.

    Any help would be appreciated!

    site: http://www.scubagogy.com

    ~Lewis

    http://www.scubagogy.com
    March 2, 2016 at 5:20 pm #180481
    ᴅᴀᴠɪᴅ
    Member

    if you're comfortable editing your functions.php file (you will want to do this in a staging area or local environment, not on your live site) Then you can add this code to the bottom of the file and change it for your site.

    
    // Filter the title with a custom function
    add_filter('genesis_seo_title', 'wap_site_title' );
    
    // Add additional custom style to site header
    function wap_site_title( $title ) {
    
        	// Add your image location and the name of your website below.
    	$custom_title = '<img class="site-logo" src="/images/custom-logo.png"> Your Site Title Here';
    
    	// Don't change the rest of this on down
    
    	// If we're on the front page or home page, use <code>h1</code> heading, otherwise us a <code>p</code> tag
    	$tag = ( is_home() || is_front_page() ) ? 'h1' : 'p';
    
    	// Compose link with title
    	$inside = sprintf( '<a href="%s" title="%s">%s</a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $custom_title );
    
    	// Wrap link and title in semantic markup
    	$title = sprintf ( '<%s class="site-title" itemprop="headline">%s</%s>', $tag, $inside, $tag );
    	return $title;
    
    }

    You can either shrink down your image before hand, so it fits nicely next to the text or style it using CSS to fit; eg..

    .site-logo {
       height: 60px;
       width: 120px;
    }

    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

  • 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