Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active May 19, 2016 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/9594667 to your computer and use it in GitHub Desktop.
Save srikat/9594667 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'home-slider',
'name' => __( 'Home Slider', 'parallax' ),
'description' => __( 'This is the home slider widget area.', 'parallax' ),
) );
if ( is_active_sidebar( 'home-section-1' ) || is_active_sidebar( 'home-section-2' ) || is_active_sidebar( 'home-section-3' ) || is_active_sidebar( 'home-section-4' ) || is_active_sidebar( 'home-section-5' ) ) {
if ( is_active_sidebar( 'home-section-1' ) || is_active_sidebar( 'home-slider' ) || is_active_sidebar( 'home-section-2' ) || is_active_sidebar( 'home-section-3' ) || is_active_sidebar( 'home-section-4' ) || is_active_sidebar( 'home-section-5' ) ) {
genesis_widget_area( 'home-section-1', array(
'before' => '<div class="home-odd home-section-1 widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
genesis_widget_area( 'home-slider', array(
'before' => '<div class="home-slider widget-area">',
'after' => '</div>',
) );
/* Full width Slider
------------------------------------------ */
.home-slider #genesis-responsive-slider {
border: none;
padding: 0;
}
.home-slider .slide-excerpt-border p {
margin-bottom: 0;
}
.home-slider .flex-control-nav li a,
.home-slider .flex-direction-nav li a {
border-bottom: none;
}
.home-slider .flex-direction-nav li .prev {
left: 0;
}
.home-slider .flex-direction-nav li .next {
right: 0;
}
.home-slider .flexslider .slides img {
width: 100%;
}
.home-slider .flexslider {
max-width: 100%;
}
@media only screen and (max-width: 768px) {
.home-slider .slide-excerpt {
width: 100%;
}
}
@media only screen and (max-width: 568px) {
.home-slider .slide-excerpt {
display: none;
}
.home-slider .flex-direction-nav {
display: none;
}
}
@kross13
Copy link

kross13 commented May 19, 2016

Hi all, I'm trying to get this to work. I want to use Soliliqoy to create a slider on my Parallax Pro home page. Has anyone else used this code and been successful? Any tips? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment