• 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

Newbie Child in Themes: Is it best practice to use widget area's for front page?

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 › Newbie Child in Themes: Is it best practice to use widget area's for front page?

This topic is: not resolved

Tagged: front page, widgets

  • This topic has 6 replies, 2 voices, and was last updated 8 years, 6 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 2, 2017 at 1:19 pm #198617
    BlueFoxx
    Member

    Hi there,

    I'm building my first Child Theme and followed some courses to gain knowledge. Bringing this knowledge in practice, I immediately stranded at my first section.

    I want to build a top header like this: http://kids.cmsmasters.net/ (the purple with the adress and social icons). As I see it I have more than one option:

    • Create widget area's in functions.php and hook em to genesis_before_header or genesis_before
    • Hardcode this somewhere as a custom header
    • Build it with Beaver Builder plugin that I also use

    Since this is a section that always needs to be active in this theme there's no point in making it flexible through widgets. But if I read some blogs / video's / tutorials I always read that you should hook everything and that it seems to be best practice to create widget area's. Is that true? What would be the best way to do this considering website performance, and just the most logical way to do this. With a page builder the plugin creates the code for me, but i want to know the DIY way / understand it. What if you do it with a separate file containing the necessary HTML and include this in your front-page setup function?

    Could someone point me in the right direction?

    Thanks alot!

    Sander

    January 2, 2017 at 1:24 pm #198620
    Brad Dalton
    Participant

    If you look at all the new HTML Pro themes, most include widget areas hard coded into the front-page.php template file.


    Tutorials for StudioPress Themes.

    January 2, 2017 at 1:53 pm #198626
    BlueFoxx
    Member

    Hi Brad,

    Thanks for your quick response! But the widget area's in front-page.php only apply to the front-page right? So then I should create another widget area for the rest of the posts. But that does seem a bit inefficiƫnt. Or is this just wrong thinking?

    January 2, 2017 at 1:58 pm #198629
    Brad Dalton
    Participant

    Genesis already includes a entry footer widget for single posts which enables you to display unique content in single posts different to your front page.


    Tutorials for StudioPress Themes.

    January 2, 2017 at 2:06 pm #198630
    BlueFoxx
    Member

    Ok so then use 2 widget area's for one site-wide topheader? How is the entry footer used for a top header?

    The goal here is not to display unique content to a certain page type. All the pagetypes should contain the same topheader as displayed in the example template in my first post.

    I think a widget area that is used sitewide must do the trick. But still, why use widgets? Widgets are flexible, but I don't need flexibility for this topheader as it's supposed to show up on every page and will not be changed.

    January 3, 2017 at 2:28 am #198668
    Brad Dalton
    Participant

    Whats a topheader? Do you mean header image? Which hook position?


    Tutorials for StudioPress Themes.

    January 3, 2017 at 2:34 am #198670
    Brad Dalton
    Participant

    If you want to add a image, use the code in this Gist

    You can change the hook and add a conditional tag if needed.

    Another option is to grab the code from a SP HTML Pro theme which includes the jQuery for Backstretch.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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

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