Remove sidebar from theme
-
Hi everyone, I’m trying to remove the sidebar from my MH Magazine Lite theme (below the php I view). Can anyone provide me with the correct php to completely remove the sidebar?
<aside class="mh-widget-col-1 mh-sidebar" itemscope="itemscope" itemtype="https://schema.org/WPSideBar"><?php if (is_active_sidebar('sidebar')) { dynamic_sidebar('sidebar'); } else { ?> <div class="mh-widget mh-sidebar-empty"> <h4 class="mh-widget-title"> <span class="mh-widget-title-inner"> <?php esc_html_e('Sidebar', 'mh-magazine-lite') ?> </span> </h4> <div class="textwidget"> <?php printf(esc_html__('Please navigate to %1s in your WordPress dashboard and add some widgets into the %1s widget area.', 'mh-magazine-lite'), '<strong>' . __('Appearance → Widgets', 'mh-magazine-lite') . '</strong>', '<em>' . esc_html__('Sidebar', 'mh-magazine-lite') . '</em>'); ?> </div> </div><?php } ?> </aside>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Remove sidebar from theme’ is closed to new replies.