Skip to content

Instantly share code, notes, and snippets.

@Steeru
Created April 16, 2018 07:15
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 Steeru/1668e827dc8eedb7ae8bdb6f5cedf4ad to your computer and use it in GitHub Desktop.
Save Steeru/1668e827dc8eedb7ae8bdb6f5cedf4ad to your computer and use it in GitHub Desktop.
function travel_log_front_page_slider_wrap() {
if ( ! is_front_page() || is_home() ) {
return;
}
$enabled = travel_log_get_theme_option( 'home_slider_enable' );
if ( ! is_customize_preview() && false === $enabled && ! is_home() ) {
return;
}
echo '<div id="travel-log-front-page-slider-wrap" class="travel-log-show-partial-edit-shortcut">';
echo do_shortcode('[YOUR_SLIDER_SHORTCODE]');
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment