• 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

Child theme from scratch – header logo 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 › Design Tips and Tricks › Child theme from scratch – header logo image

This topic is: resolved

Tagged: child theme, header image

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by colkav.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 22, 2013 at 7:49 am #13696
    colkav
    Member

    Hi,

    I'm learning genesis, css, and how it all fits together.  I've created my own child theme, and copied the css file from the Genesis parent into my child theme.

    I've created a header image, now i want to add that image. Just to clarify, i'm doing this to get my head around the fundamentals, and how it fits together.  So, to add my image to the header, is this something that is specified in style.css, or in child-theme/functions.php, or both?

    As i'm creating a theme from scratch the header options in the WP dashboard are not present...

    I can understand that this might be something you could write a book on, but perhaps being pointed in the right direction might help my understanding.  I'm not looking for step by step directions (although that might help), just, is it a hook / action, or a bit of css?

    Many thanks,

    colkav

    January 22, 2013 at 9:14 am #13705
    Peter
    Member

    Adding the following code to your functions.php file will get you started;

    add_theme_support( 'genesis-custom-header', array(
    'width' => 960,
    'height' => 160
    ) );

    You'll also need to add CSS to your style.css file to make sure it displays properly.

    The official documentation on custom headers is also worth reading;

    http://codex.wordpress.org/Custom_Headers

    January 23, 2013 at 4:05 am #14017
    colkav
    Member

    Thanks Peter, that's a perfect start!

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