• 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

Site Header logo as image instead of background image

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 › Site Header logo as image instead of background image

This topic is: resolved

Tagged: banner, header, Logo

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by optimus203.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 14, 2014 at 8:03 pm #100329
    optimus203
    Member

    Right now my logo is a background image for .site-header, but I would like to make the logo a separate image that resides in the .title-area section. Any ideas?

    Currently logo is background image of following element:

    <header class="site-header" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader">

    And I'd like the logo image to be placed in

    <div class="title-area"><div id="title"><a href="http://www.url.com/"><img src="http://www.url.com/logo.jpg" /></a></div></div>

    April 15, 2014 at 7:44 am #100376
    Lauren @ OnceCoupled
    Member

    I'm better at seeing things to understand them, but it sounds as if you are currently uploading an image and using the Genesis options to turn it on? Instead you'd like the image to be linked, not a background.

    For this, you want to add support for a custom header. Depending on your dimensions, you may need to change some of your CSS: http://gregrickaby.com/genesis-code-snippets/#header

    Let me know if I'm totally off. 😉

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    April 15, 2014 at 7:59 am #100391
    optimus203
    Member

    Hi Lauren. You can see what I'm talking at http://www.davalign.com/404 . The logo is background image. I would like it to be a clickable image instead.

    April 15, 2014 at 8:42 am #100402
    Lauren @ OnceCoupled
    Member

    I see. Here's a nearly identical question to yours: http://www.studiopress.community/topic/make-a-background-image-logo-clickagle/

    In your case, you have

    .header-image .title-area {
         display: none;
    }

    you'll need to change this so the link nested within it appears.


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    April 15, 2014 at 4:17 pm #100589
    optimus203
    Member

    Hey Lauren. That is not what I want. I've like the logo to exist as an element instead of a background image.

    April 15, 2014 at 4:28 pm #100595
    optimus203
    Member

    This is what I needed, and the removal of display:none; on .header-image .title-area

    
    // Add support for custom header - makes logo a CSS background image
    // Comment out to allow for logo as <img> element
    /*
    add_theme_support( 'genesis-custom-header', array(
    	'width' => 360,
    	'height' => 87
    ) );*/
    
    // Remove default site title
    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    
    // Add logo as IMG instead of background iamge
    function company_logo() {?>
    	<a id="sitelogo" href="<?php bloginfo( 'url' ); ?>"><img src="http://www.url.com/wp-content/themes/theme/images/logo.png" alt="<?php bloginfo('name')?>" title="<?php bloginfo('name')?>" /></a><?php ;
    	}
    add_action( 'genesis_site_title','company_logo',5,1);
  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Site Header logo as image instead of background image’ 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

© 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