I got a new screenshot for the generic theme and I also added the widget
area for the slideshow.
'id' => 'sidebar-r',
'description' => __('Appears in Right Sidebar')
));
+ register_sidebar(array(
+ 'name' => __('Slideshow'),
+ 'id' => 'slideshow',
+ 'description' => __('Slideshow/Metaslider Area')
+ ));
//register_sidebar(array(
// 'name' => __('Footer'),
// 'id' => 'sidebar-f',
-<?php if (is_front_page()) {
- echo '<div id="slideshow">';
- echo do_shortcode("[metaslider id=90]");
- echo do_shortcode("[metaslider id=95]");
- echo '</div>';
-}
-?>
+<?php if (is_front_page()) : ?>
+ <div id="slideshow">
+ <?php if ( is_active_sidebar( 'slideshow' ) ) : ?>
+ <?php dynamic_sidebar( 'slideshow' ); ?>
+ <?php endif; ?>
+ </div>
+<?php endif; ?>
\ No newline at end of file