• 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

Retina ready image on header logo

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 › Retina ready image on header logo

This topic is: resolved

Tagged: css, header logo, retina-ready

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago by Eduardo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 24, 2015 at 2:54 pm #174762
    Eduardo
    Member

    I'm currently working on Genesis's Agency Pro theme and I'm trying to display an image on the header logo that can be seen nicely on retina screens.

    I've looked at a couple of articles already, but none of them have gotten me what I wanted.

    One article suggested I go into functions.php and modify the Custom header function to allow for images twice the size that the theme currently allows.

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    'header_image' => '',
    'header-selector' => '.site-title a',
    'header-text' => false,
    'height' => 120, //* was 60
    'width' => 600, //* was 300
    ) );

    So far, this has gotten me the closest to what I want to see. I test it on my iphone and it looks great, but now the image gets cropped at larger viewports. I know I'm almost there. What can I do next?

    http://staging.trytobosa.org
    December 24, 2015 at 5:08 pm #174773
    James
    Participant

    Hi there

    that's fine making the logo twice the size

    you just need to add contain to your site-tite css

    .header-image .site-title a {
    background-size: contain !important;
    }

    January 5, 2016 at 12:14 pm #175659
    Eduardo
    Member

    Worked great Jamie! Thanks.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Retina ready image on header logo’ 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

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