• 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

How do I create a full width feature or Hero using the Sample Child theme

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 › How do I create a full width feature or Hero using the Sample Child theme

This topic is: not resolved

Tagged: code, full width, function, hero

  • This topic has 9 replies, 4 voices, and was last updated 8 years, 10 months ago by Northumbrian.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • October 5, 2013 at 3:31 am #65443
    [email protected]
    Member

    Hi, I would like to re-create a full with feature area like seen in the attached image.

    How can this be done using the Sample Child theme?

    Feature Example from StudioPress landing page

    October 5, 2013 at 4:06 am #65445
    Brad Dalton
    Participant

    Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    https://gist.github.com/braddalton/685f93b39e8b4de1e9f7


    Tutorials for StudioPress Themes.

    October 6, 2013 at 1:35 am #65523
    [email protected]
    Member

    Thanks Braddalton, that has given me a text wdiget that I can use on the home page. Now how do I make that a background image, so I can display text over it on the left and a signup form on the right?

    October 6, 2013 at 1:49 am #65524
    Brad Dalton
    Participant

    You can put any type of content in the widget.

    I think you're wanting a feature box for email sign ups? The easiest way to do this is to use the Genesis eNews Extended Widget.


    Tutorials for StudioPress Themes.

    October 6, 2013 at 3:07 am #65531
    [email protected]
    Member

    Hi Braddalton, with the content widget, I can only really put one thing in there at a time though can't I? Either a larger image or text? How do I have the image as a background AND text overlaid as say a H1 and H3?

    October 6, 2013 at 4:24 am #65545
    Brad Dalton
    Participant

    What you could do is design the content in your editor and copy and paste the HTML into a text widget.

    This is how i did it to make a featured box.

    You can use a web design tool like Paint.net or Windows or GIMP for Mac and do it that way.

    Another option is to use CSS and HTML for the text overlay


    Tutorials for StudioPress Themes.

    October 6, 2013 at 8:48 pm #65603
    [email protected]
    Member

    AHA Thanks Braddalton, let me do some research, give that a try and come back if I get stuck.

    January 28, 2014 at 3:33 am #87441
    mborger
    Member

    Following up on this thread as it's what I'm trying to do at funthingsapp.com

    I'd like to more closely mirror the layout on badoo.com . How do I:

    1) Move the text/image overlay to the right side of the screen instead of the left

    2) Once moved to the right, have it inset some instead of flush against the edge of the screen. Maybe 50px in.

    3) Have the background overlay color be a complete shape, i.e. rounded oval, instead of a "boxy" line by line behind the text. Just like they do on badoo.com

    Thank you.

    May 17, 2014 at 1:58 pm #105645
    Northumbrian
    Participant

    @braddalton

    Sometimes what seems so 'second nature' to some saves others hours of head-banging.

    If I wanted to have this full-width display on other pages - not just Front - would I change this line below:
    if ( is_front_page() && is_active_sidebar('after-header') ) {

    To this one:
    if ( && is_active_sidebar('after-header') ) {

    - Thank you for posting the function... Appreciated much.


    – looks like Saruman is now running the Shire.

    May 17, 2014 at 2:26 pm #105647
    Northumbrian
    Participant

    I think i goddit. I just have to remove the whole line:

    // if ( is_front_page() && is_active_sidebar('after-header') )
    {

    and then it'll show on just pages declared with a Widget 'Display on Page' plugin..

    Awesome. Thanks again.


    – looks like Saruman is now running the Shire.

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