• 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

Add Responsive Slider to Home 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 › Design Tips and Tricks › Add Responsive Slider to Home Page

This topic is: resolved

Tagged: slider, streamline

  • This topic has 8 replies, 2 voices, and was last updated 11 years, 6 months ago by Brad Dalton.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • June 3, 2014 at 11:57 am #107984
    mbeck
    Participant

    I'd like to be able to add the Genesis Responsive Slider to my Home Page below the three Homepage widgets. Is there an easy way to do that?

    http://www.michaeljbeck.com/
    June 3, 2014 at 12:17 pm #107987
    Brad Dalton
    Participant

    Add a new widget in the front-page.php file or hook it in from your functions file using the genesis_before_content hook and is_front_page() conditional tag.

    Basically, change this line in the code:

    add_action( 'genesis_after_header', 'your_widget' );
    

    To this:

    add_action( 'genesis_before_content', 'your_widget' );
    

    Tutorials for StudioPress Themes.

    June 3, 2014 at 5:36 pm #108016
    mbeck
    Participant

    Thanks, Brad,
    I took a look at your tutorial and wrote some code, but I must have something wrong.
    Would you mind taking a look at it for me?
    Thanks!

    genesis_register_sidebar( array(
    'id' => 'bottom_center',
    'name' => __( 'Bottom Center', 'streamline' ),
    'description' => __( 'This is the content after Home Widgets', 'streamline' ),
    ) );
    add_action( 'genesis_before_content', 'bottom_center' );
    function your_widget() {
    if ( is_front_page() && is_active_sidebar('bottom_center') ) {
    genesis_widget_area( 'bottom_center', array(
    'before' => '<div class="bottom_center widget-area">',
    'after' => '</div>',
    ) );

    June 3, 2014 at 5:44 pm #108017
    mbeck
    Participant

    Also, does it go in the function.php file or the front-page.php file?

    June 3, 2014 at 5:44 pm #108018
    mbeck
    Participant

    FYI, I'm using the Streamline Pro Theme and not the older Streamline Theme.

    June 4, 2014 at 2:22 am #108040
    Brad Dalton
    Participant

    When you paste code into a web page incorrectly it breaks.

    So i can't test that code.


    Tutorials for StudioPress Themes.

    June 4, 2014 at 9:41 am #108071
    mbeck
    Participant

    OK, let me ask this instead.
    Do you know if the Genesis Responsive Slider can be inserted into a content area with a shortcode?

    June 4, 2014 at 10:15 am #108073
    mbeck
    Participant

    Brad, I made another attempt to solve this with your suggestion and it worked!
    Thanks so much for your help.

    June 4, 2014 at 10:23 am #108075
    Brad Dalton
    Participant

    No. Only using a widget.


    Tutorials for StudioPress Themes.

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

© 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