2nd Slider Area Minimum Theme

Community Forums Forums Design Tips and Tricks 2nd Slider Area Minimum Theme

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  anitac 1 year, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #35510

    BossLady
    Participant
    Post count: 30

    I replaced the header image with a slider – all is perfect! I then added a second slider to the homepage using the same instructions (a couple of tiny tweaks because can’t have same IDs, etc. The only problem I’m having now is it is sitting directly below the 1st slider, but I need it to go after the 4 home featured widgets. I’m sooo close!

    In my functions. php I have

    /** Add the portfolio slider section */
    add_action( 'genesis_after_header', 'minimum_portfolio_slider' );
    function minimum_portfolio_slider() {
    if ( is_home() ) {
    echo '';
    genesis_widget_area( 'portfolio-slider', array('before' => '', ) );
    echo '';
    }
    elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    echo '';
    echo get_the_post_thumbnail($thumbnail->ID, 'header');
    echo '';
    }
    }

    And it is registered…

    genesis_register_sidebar( array(
    'id' => 'portfolio-slider',
    'name' => __( 'Portfolio Slider', 'minimum' ),
    'description' => __( 'Place Soliloquy slider here and select Portfolio', 'minimum' ),
    ) );

    I put the following in home.php right after the 4 home features, but when I do it pushes the new widget to the very top:

    echo '<div id="';

    genesis_widget_area( 'portfolio-slider', array(
    'after' => '',
    ) );
    echo '';

    I feel like I’m on the right track, I just need a nudge in the right direction to get it the rest of the way there…

    Thanks so much!!

    #35527

    anitac
    Participant
    Post count: 7034

    Hi BossLady, can you share a link to your site. I can look to see what your home looks like now and also at the DIV’s.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35555

    BossLady
    Participant
    Post count: 30

    Can I send you a link with a login/pw? Client needs it to stay hidden. I’d like to send you 2 – one for the regular site, one for a “test” on a subdomain. The test one I didn’t put a slider in the top, but I used the following on the home page instead of the larger piece of code in the functions:

    /** Add home portfolio thumbnail area */
    add_action( 'genesis_before_loop', 'minimum_home_portfolio' );
    function minimum_home_portfolio() {
    dynamic_sidebar( 'home-portfolio' );
    }

    When I put that in the “real” site, it doesn’t show up anywhere at all. I’m not new to creating divs and playing with php, but I am new to Genesis, so I’m still getting the hang of things. I am actually go to switch to a different (Genesis) theme because I’m just not “feeling it” with this one for this particular purpose, but I still would a little help on this for future sites. I’m really loving how fast and clean Genesis is!

    Thanks so much, AnitaC!

    #35556

    BossLady
    Participant
    Post count: 30

    Aw jeez… you’re going to have to tell me how to pm you… For some reason I’m so technologically inept when it comes to using forums, lol

    #35563

    anitac
    Participant
    Post count: 7034
    This reply has been marked as private.
    #35580

    BossLady
    Participant
    Post count: 30

    WAHOOO!!! I got it!! Yeesh… What happened was I had set it up on the test site first, which didn’t already have a slider section. So when I added it to the “real” site I had to change the name so it didn’t conflict. But I copied/pasted that sweet little piece of code from the test site and forgot the change the name. When I didn’t see it I put code on the functions page instead. Good. Gravy. Got the name changed and put it on the home page, took the extra code out of the functions.php, et voilà! Works perfectly :)

    Thanks for your willingness to help, AnitaC ~ I truly appreciate it :)

    #35597

    anitac
    Participant
    Post count: 7034

    Great! Sorry I could respond to you via email. I had another urgent issue. Please change your passwords to your dashboards.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

The topic ‘2nd Slider Area Minimum Theme’ is closed to new replies.