Website goes blank on front if no slider posts are made yet
-
Hello
I just noticed that if I insert the following code into my header.php where I want the slider and I don’t have any slides created yet, the website content on the front end goes blank:
<!-- /.slider --> <?php if (is_front_page()) : ?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if (is_plugin_active('cpt-bootstrap-carousel/cpt-bootstrap-carousel.php')) { echo do_shortcode('[image-carousel]'); } ?> <?php else : ?> <?php endif; ?> <div class="clear"></div>
If I add a slide it all displays fine- is this normal or am I doing something wrong?
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Website goes blank on front if no slider posts are made yet’ is closed to new replies.