Skip to content

Instantly share code, notes, and snippets.

@eslucky
Forked from srikat/home.js
Created June 14, 2014 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eslucky/e7d19a7755a18c476579 to your computer and use it in GitHub Desktop.
Save eslucky/e7d19a7755a18c476579 to your computer and use it in GitHub Desktop.
//* Add Soliloquy slider above .site-header
add_action( 'genesis_before_header', 'sk_home_slider' );
function sk_home_slider() {
if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( 'home-slider' );
}
/* Soliloquy slider on homepage
--------------------------------------------- */
#soliloquy-container-1298 {
position: absolute;
top: 0;
left: 0;
z-index: -1;
max-width: none !important;
margin-top: 160px;
}
#soliloquy-container-1298 .soliloquy .soliloquy-slides img {
width: 100%;
}
@media only screen and (max-width: 768px) {
#soliloquy-container-1298 {
position: relative;
z-index: 0;
}
.home .site-header {
top: 0;
}
}
@eslucky
Copy link
Author

eslucky commented Jun 14, 2014

Use on Centric theme to put full screen Soliloguy slider in widget #1 (behind text)

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