• 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

Adding a Full Width Slider to Magazine 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 › Adding a Full Width Slider to Magazine Theme

This topic is: not resolved

Tagged: magazine, slider

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 5 months ago by SoZo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 27, 2012 at 2:54 pm #1924
    JenniB
    Member

    Hi,

    I'm trying to add a full width slider to the magazine theme's homepage and I keep bumping into the primary sidebar. I've already registered the widget, added it on the homepage, installed and configured Genesis Responsive Slider, stuck it in the home-slider widget I created. I have two issues:

    1. Need to go full width (960px) - no margins

    2. Need to push the primary sidebar down.

    Homepage code:

        if ( is_active_sidebar( 'home-slider' )) {
            echo '<div class="home-slider">';
            dynamic_sidebar( 'home-slider' );
            echo '</div><!-- end .home-slider -->';
            }

    http://infomediallc.com/outfit/

    Thanks for your help!

    Jenn

    November 27, 2012 at 2:58 pm #1927
    JenniB
    Member

    P.S. How do I post code without butchering it here in the forums?

    November 27, 2012 at 8:11 pm #1970
    SoZo
    Member

    You need to put it into an action hooked somewhere before the content-sidebar-wrap, e.g.

    add_action('genesis_before_content_sidebar_wrap', 'slider_box');
    function slider_box() {
    if ( is_active_sidebar( 'home-slider' )) {
    echo '<div>';
    dynamic_sidebar( 'home-slider' );
    echo '</div><!-- end .home-slider -->';
    }
    }

    You could also use the genesis_before_header hook.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 27, 2012 at 10:15 pm #1989
    JenniB
    Member

    You did it again! You're a life saver!

    Thanks,

    Jenn

    November 28, 2012 at 10:03 am #2028
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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