Community Forums › Forums › Archived Forums › Design Tips and Tricks › 2nd Slider Area Minimum Theme
Tagged: extra widget, minimum, portfolio
- This topic has 6 replies, 2 voices, and was last updated 10 years, 11 months ago by Anita.
-
AuthorPosts
-
April 14, 2013 at 11:25 pm #35510BossLadyMember
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!!
April 15, 2013 at 5:45 am #35527AnitaKeymasterHi 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.
Love coffee, chocolate and my Bella!
April 15, 2013 at 8:44 am #35555BossLadyMemberCan 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!
April 15, 2013 at 8:45 am #35556BossLadyMemberAw 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
April 15, 2013 at 9:23 am #35563AnitaKeymasterThis reply has been marked as private.April 15, 2013 at 10:47 am #35580BossLadyMemberWAHOOO!!! 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 🙂
April 15, 2013 at 1:18 pm #35597AnitaKeymasterGreat! Sorry I could respond to you via email. I had another urgent issue. Please change your passwords to your dashboards.
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The topic ‘2nd Slider Area Minimum Theme’ is closed to new replies.