summaryrefslogtreecommitdiff
path: root/dist/sidebar-templates/sidebar-right.php
diff options
context:
space:
mode:
Diffstat (limited to 'dist/sidebar-templates/sidebar-right.php')
-rw-r--r--dist/sidebar-templates/sidebar-right.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/dist/sidebar-templates/sidebar-right.php b/dist/sidebar-templates/sidebar-right.php
new file mode 100644
index 0000000..e5c4f62
--- /dev/null
+++ b/dist/sidebar-templates/sidebar-right.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * The right sidebar containing the main widget area.
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+if ( ! is_active_sidebar( 'right-sidebar' ) ) {
+ return;
+}
+
+// when both sidebars turned on reduce col size to 3 from 4.
+$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
+?>
+
+<?php if ( 'both' === $sidebar_pos ) : ?>
+<div class="col-md-2 widget-area" id="right-sidebar" role="complementary">
+ <?php else : ?>
+<div class="col-lg-4 widget-area" id="right-sidebar" role="complementary">
+ <?php endif; ?>
+<?php dynamic_sidebar( 'right-sidebar' ); ?>
+
+</div><!-- #right-sidebar -->