• 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

Need help with News Pro header image please!

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 › Need help with News Pro header image please!

This topic is: resolved

Tagged: Custom header, header image, News Pro

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by Mr_Vercetti.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 5, 2014 at 12:58 pm #113062
    Mr_Vercetti
    Member

    Hi guys and girls.

    I am desperately trying to change my header size in the News Pro theme. I did a search trough these forums and found some instructions, but unfortunately nothing seems to work for me. Maybe I am doing something wrong, but I don't know what...

    I have uploaded a random image to my header now to show you how it looks.

    The URL is: http://www.technofil.dk

    Here's what I've changed so far:

    1. In functions.php I changed the 'height' and the 'width' (I don't know why I used those sizes).

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    'header_image' => '',
    'header-selector' => '.site-title a',
    'header-text' => false,
    'height' => 200,
    'width' => 1248,

    2. In style.css I have added the padding 4rem; like so:

    .site-header {
    background-color: #fff;
    border-bottom: 3px solid #000;
    }

    .site-header .wrap {
    padding: 40px 0;
    padding: 4rem 0;
    }

    /* Title Area
    --------------------------------------------- */

    .title-area {
    float: left;
    padding-left: 40px;
    padding-left: 4rem;
    width: 300px;
    }

    .site-title {
    font-weight: 700;
    font-size: 48px;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;

    }

    3. Still in style.css I changed the min-height to 200px like so:

    /* Logo, hide text */

    .header-image .site-title a {
    background-position: top !important;
    float: left;
    min-height: 200px;
    width: 100%;
    }

    My site looks very strange now.. it seems I have expanded the area around the header image, but not the image it self.

    http://www.technofil.dk
    July 5, 2014 at 2:51 pm #113066
    Tonya
    Member

    Hello,

    The problem is there is padding around the header image. Here are the changes you can make to make it fill the area (in your style.css file):

    line 1039

    .site-header .wrap {
    padding: 0;
    }

    line 1081

    .header-full-width .title-area {
    padding: 0;
    text-align: center;
    }

    Cheers


    Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    July 5, 2014 at 3:10 pm #113068
    Mr_Vercetti
    Member

    Thank you SO much, you have no idea how much you just made my day:-)

    I'll be glad to give you endorsements on Linkedin or something in return for your help, it was very nice of you to help me.

    Best regards

    Jesper

    July 5, 2014 at 3:20 pm #113072
    Tonya
    Member

    Hi Jesper,

    You are very welcome. We are all here to help one another, with nothing expected in return. One day you'll may be in a position to help another here too.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    July 5, 2014 at 3:21 pm #113074
    Tonya
    Member

    BTW If you would, please mark this thread as resolved if you are satisfied. Cheers 🙂


    Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    July 5, 2014 at 4:23 pm #113085
    Mr_Vercetti
    Member

    Just did:-)

    Once again, thank you very much and have a nice weekend!

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

© 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