Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis Slider on Static Pages
Tagged: Innov8tive, slider
- This topic has 13 replies, 2 voices, and was last updated 11 years, 5 months ago by
Brad Dalton.
-
AuthorPosts
-
November 7, 2013 at 11:04 pm #71621
clarkscondensed
MemberI am currently working on a client's page, and I am trying to get the slider to show up on the static page -- I tried to follow these instructions:
http://www.carriedils.com/add-slider-minimum-theme/
But the theme she has (innov8tive) doesn't have some of the code that the other theme has. Is there anyway I can make the slider show up on the static homepage? I was able to register a new widget area called "Home Slider" and input the widget for the genesis responsive slider. The site I am working on is itsyummi.com
http://www.itsyummi.comNovember 8, 2013 at 1:27 am #71634Brad Dalton
ParticipantTry this http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/
You will need to change the conditional tag and hook position.
November 9, 2013 at 12:29 am #71829clarkscondensed
MemberOkay, I installed that code, and I think I changed it correctly; my computer is having a hard time updating the site for some reason though -- can you see if slider is working. If not, here is the code I put in:
genesis_register_sidebar( array(
'id' => 'home-slider',
'name' => __( 'Home Slider', 'ItsYummi' ),
'description' => __( 'This is the home slider', 'ItsYummi' ),
) );add_action( 'genesis_after_header', 'your_widget' );
function your_widget() {
if ( is_front_page() && is_active_sidebar('new-widget') ) {
genesis_widget_area( 'new-widget', array(
'before' => '<div class="new-widget" class="widget-area">',
'after' => '</div>',
) ); }}
November 9, 2013 at 2:03 am #71839Brad Dalton
ParticipantThat won't work.
Please use the code from the tutorial i linked to.
You can then use the Genesis Slider widget in the new widget area.
November 9, 2013 at 1:17 pm #71890clarkscondensed
MemberI must be an idiot - I copied and pasted that exact code, and that widget area shows up, but the slider is still not showing up!
November 9, 2013 at 5:21 pm #71910Brad Dalton
ParticipantI don't own that theme so hard to test but i did test on the Magazine Pro theme right now and works perfectly.
Does the Developer of your theme offer support?
Here's the new widget which i populated with a calender widget.
Where did you paste the code?
November 9, 2013 at 9:47 pm #71948clarkscondensed
MemberIt turns out that it does show up. My browsers, for some reason, won't show me changes I make on this site (itsyummi.com) it is showing up. However, I'd like it to show up in the Genesis Loop hook, so it doesn't take up so much space. Would I change this:
add_action( 'genesis_after_header', 'your_widget' );
to this:
add_action( 'genesis_loop', 'your_widget' );
Thank you for all your help so far.
November 9, 2013 at 10:24 pm #71956Brad Dalton
ParticipantNovember 9, 2013 at 10:25 pm #71958clarkscondensed
MemberGreat, thank you! I'll see if that works.
November 9, 2013 at 10:29 pm #71959clarkscondensed
MemberWell I did that, but it seems to have removed the slider altogether...is there anything else I need to change in that code? This is all in the functions.php folder
November 9, 2013 at 10:39 pm #71961Brad Dalton
ParticipantMake sure the slider widget area is populated.
Otherwise you may have an error in the code.
If you paste code here, please add it to a Github Gist and embed it here.
November 9, 2013 at 10:47 pm #71963clarkscondensed
MemberI made sure that the genesis widget was placed in the widget area, but no luck.
Here is the code I have in the functions.php file
<script src="https://gist.github.com/anonymous/7393947.js"></script>
November 9, 2013 at 10:49 pm #71965clarkscondensed
MemberHmm..that didn't seem to work. Here is the link:
November 9, 2013 at 11:10 pm #71970Brad Dalton
Participant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.