Created
April 16, 2018 07:15
-
-
Save Steeru/1668e827dc8eedb7ae8bdb6f5cedf4ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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