Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.