• 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

Executive Slider on Static 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 › Executive Slider on Static Home Page

This topic is: not resolved

Tagged: slider, static home page

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by Anita.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 13, 2012 at 11:42 pm #5171
    Axman1413
    Member

    Nick asked me to post this support question here:

    "I am working with the Executive child theme. We would like the Responsive Slider to appear in full width only on the custom static home page with a layout of content-sidebar (rather than the slider being included in the content area and reduced in size).

    We don't want the slider on all pages, and we want the simple blog layout on the front page. There is no Hook for adding anything just to the is_front_page(). Can you provide me with the best option to get this result."

    http://new.petethomas.com/

    In the time I was waiting for a reply, I figured out how to do it.

    First I used about 3 different code alterations to get the following code. It is a widget I registered, and called to appear only on the is_front_page. The client wanted the full slider to show across the top, with the latest posts and the sidebar underneath it. The Genesis Layout Extras Plugin would get the desired results partially. The slider would appear above the post entry content, but the sidebar would appear to the right of both the post entry content and the slider, which was resized responsively to fit above the post entry content.

    So I figured this out and added it to the Child Theme's function.php:

    /** Register widget areas */
    genesis_register_sidebar( array(
    'id' => 'welcome-text',
    'name' => __( 'Welcome Text', 'genesis' ),
    'description' => __( 'This is the welcome text widget.', 'executive' ),
    ) );

    /** Add the welcome text section */
    add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' );
    function custom_welcome_text() {
    if ( is_front_page())
    genesis_widget_area( 'welcome-text', array(
    'before' => '',
    ) );
    }

    ***Please note that the &gt should be a ">" sign. Not sure why the code is not showing properly in the wrapped html.

    Thanks,

    Johnny

    December 14, 2012 at 9:26 am #5210
    Anita
    Keymaster

    I found some instruction on the old forum that says:

    In the Home.php - remove this line below:

    remove_action( 'genesis_loop', 'genesis_do_loop' );

    and then... remove this line also:

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    It seemed to work for the person who asked initially.


    Love coffee, chocolate and my Bella!

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