• 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

Creating A Slider On Homepage of Focus 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 › Creating A Slider On Homepage of Focus Theme

This topic is: not resolved
  • This topic has 3 replies, 3 voices, and was last updated 10 years, 10 months ago by Davinder Singh Kainth.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 16, 2012 at 8:35 am #285
    amandac
    Member

    Hi,

    I love the layout of the Focus theme but I want to have a slider at the top of the homepage, after the header, but before the latest post feed.

    I envision the slider being half-width, with the primary sidebar on its right.

    Can anyone help me do this, or lead me to a resource that might help? I am pretty new to this stuff.

    Amanda

    November 16, 2012 at 8:48 am #288
    Andrea Rennick
    Member

    Add a widget area:
    http://www.studiopress.com/tutorials/register-widget-area
    http://codex.wordpress.org/Widgetizing_Themes

    Nick's super clear explanation: http://nickc.co/sidebar

    Using a hook:
    http://www.briangardner.com/home-widget-area-eleven40/


    **forum signature**
    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    November 16, 2012 at 9:11 am #306
    amandac
    Member

    Thank you! This is very very helpful

    November 20, 2012 at 11:51 pm #1073
    Davinder Singh Kainth
    Member

    Step 1 Add new widget area "homepage-feature" below header using following code in functions.php file.

    genesis_register_sidebar( array(
    'id' => 'homepage-feature',
    'name' => __( 'Homepage Feature', 'custom' ),
    'description' => __( 'This is Homepage feature section', 'custom' ),
    ) );
    /** Top Homepage feature section */
    add_action( 'genesis_after_header', 'news_homepage_feature', 9 );
    function news_homepage_feature() {
    if ( is_home() && is_active_sidebar( 'homepage-feature' ) ) {
    echo '';
    dynamic_sidebar( 'homepage-feature' );
    echo '';
    }
    }

    source - http://www.basicwp.com/add-new-widget-genesis-homepage/

    Step 2. Install Genesis responsive slider and drag the slider widget into "homepage-feature" widget area.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

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