Add Responsive Slider to Home Page

Community Forums Forums Design Tips and Tricks Add Responsive Slider to Home Page

This topic is: resolved

Tagged: ,

This topic contains 8 replies, has 2 voices, and was last updated by  braddalton 10 months, 3 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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/
    #107987

    braddalton
    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’ );
    

    #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>’,
    ) );

    #108017

    mbeck
    Participant

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

    #108018

    mbeck
    Participant

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

    #108040

    braddalton
    Participant

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

    So i can’t test that code.


    #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?

    #108073

    mbeck
    Participant

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

    #108075

    braddalton
    Participant

    No. Only using a widget.


Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.