• 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

Make the Magazine theme header responsive

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 › Make the Magazine theme header responsive

This topic is: not resolved
  • This topic has 7 replies, 4 voices, and was last updated 12 years, 11 months ago by echofoxtrot.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 23, 2013 at 10:55 pm #22513
    echofoxtrot
    Member

    I hope that this is helpful to someone:

    I noticed that while most of the theme was responsive, the header was cutting off as the screen size decreased to below the header width. I made this change to the style.css file:

    /* Image Header - Full Width
    ------------------------------------------------------------ */

    .header-full-width #title-area,
    .header-full-width #title,
    .header-full-width #title a {
    max-width: 100%;                         /* This was originally  width: 960px */
    }

    February 24, 2013 at 1:07 am #22518
    Susan
    Moderator

    Thanks for the tip!

    March 1, 2013 at 8:46 am #23509
    Doug
    Member

    I wonder if StudioPress will catch this and update the Magazine theme accordingly with this important change.

    Thank you, echofoxtrot.

    Peace,

    Doug

    March 1, 2013 at 9:21 am #23520
    echofoxtrot
    Member

    You're welcome! Seems likely, as Susan, one of the moderators, noted this. Or maybe it'll be a code snippet.

    March 1, 2013 at 3:19 pm #23579
    finalrune
    Member

    +1 for this little helper.  My next task is to try and get a 'search' box into the header area of Magazine theme... if anyone has ever successfully done this, let me know!

    - Fred

    March 1, 2013 at 3:30 pm #23580
    echofoxtrot
    Member

    I just checked and I believe that all you have to do is drag the Search Widget into the Header Right widget area.

    March 14, 2013 at 5:04 pm #26877
    echofoxtrot
    Member

    Hmm. I noticed, though, that when I uploaded an image of my own for the header, that code doesn't make the header 'responsive.' It works when you use the default background and just change the text, however.

    Working on this!

    March 14, 2013 at 9:14 pm #26944
    echofoxtrot
    Member

    Ok, I think I have an answer. This is working for me. Frankly, it seems a little kludgy, but here you are - I would love to hear your comments and/or ways to improve this. The idea is to use an actual img instead of a background image in the header in order to make it shrink as needed when the screen size is reduced.

    First, I added this code to the Magazine theme functions.php file to make the header the size I wanted, the same size as my header image. Of course, you would use the height and width of your own image.

    add_theme_support( 'genesis-custom-header', array(
    'width' => 400,
    'height' => 95
    ) );

    Then, I added this to the functions.php file:

    add_action ('genesis_header', 'insert_header_image');
    function insert_header_image() {
    echo '<img src="/wp-content/themes/magazine/images/my-logo-name.png" />';  // This is the path to my header image. Yours may differ.
    }

    Then, I changed the height of the title area in the style.css file to make the title area sort of disappear:

    .header-full-width #title-area
    {height:1px;
    }

    If I had not done that, I would have an extra 115 pixels of empty space on top of my header image.

    The above code puts an actual img into the header space instead of having a background image as the header.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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

© 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