Hook into register_sidebar
and remove the sidebar from the global array $wp_registered_sidebars
:
add_action( 'register_sidebar', function( $sidebar )
{
if ( 'lateral' === $sidebar[ 'name' ] )
unset( $GLOBALS['wp_registered_sidebars'][ $sidebar[ 'id' ] ] );
});
Then adjust the stylesheet or add extra CSS to wp_head
to let the page content take the full width.
See also: Change a sidebar name?
Related Posts:
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Where is the content of widgets stored in mysql table
- How to Remove All Widgets from Dashboard?
- How do I rebind event after widget save
- Determining a Widget Instance and Sidebar Location?
- Remove […] from RSS feed?
- What is the best way to include a widget in a Page?
- Difference between widget form code variables
- How to create a widget that has a submit form in the front end
- Custom shortcode in widget forced to top of widget
- Modifying recent post widget to include icons for post titles
- Unfiltered html in widget title not working
- How to retrive widget title/data
- Separate backend “Widgets” page for each language
- How Can I Register Menus and Widgets Conditionally Based on Theme Options/Settings?
- Where (what direcory) are the default WordPress Widget Codes stored?
- check for shortcode in post/pages AND widgets AND template files
- Why can’t I add this feed to the RSS widget?
- Why use dynamic_sidebar() conditionally?
- Using Advanced Custom Fields in a widget
- Closest thing to an is_widget() tag?
- More flexible sidebar and widget management
- Why won’t my custom widget stay in the sidebar after a reload?
- How to “pair” two widgets side by side in one sidebar [closed]
- Dynamic Sidebars On Multiple Subpages
- Can I remove a widget area without editing code?
- Custom dashboard widget search box
- Notice: Undefined index: filter in …wp-includes/default-widgets.php on line 382
- Need some help understanding widgets
- Cannot save widgets in custom sidebars
- register widget class not written in theme
- Font awesome Icon HTML in widgets disappear on save
- How to determine the number of widgets contained in a sidebar via customizer JS
- Hide widget if user is logged in without plugin
- Toggle option in sidebar widgets
- for class wp_widget, in what order are the member functions called?
- Add field to dashboard to update embedded URL on homepage?
- unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in widget [closed]
- How can hide widget title if custom widget is empty
- styling back end widget form and enabling multi widget feature
- How to show different widgets on different pages in a user friendly way
- widgetlogic and permalinks
- allow user to style widget backgound per widget
- I’m trying to find a basic plugin for displaying images in a widget [closed]
- Block-based Widgets Editor – how to enable a title
- Elementor widgets – conditional controls
- WordPress Tag Cloud args (font-size) not working since wp update 4.9
- How to track whether the user has changed the value of the field in the widget or not?
- Problem creating an array instance in a widget in 4.4 update
- Redirect to page after a widget form submit
- WordPress: How to embed a widget on a separate website?
- Where to put custom widget file?
- Making tags appear as an Unordered list instead of a ‘cloud’
- How to get options of all active widgets ?
- How to pass a special CSS class into widget li
- Show Woocommerce Product “attributes/extra information tab” in widget [closed]
- get_the_title and get_permalink outside of the Loop
- How to load a stylesheet into wp_head from a custom widget?
- how to add the same Widget twice to a sidebar?
- WordPress archives widget causes Bing bot 404 errors
- WordPress widget not appearing in editors widget list
- My widget not printing before_widgets and after widgets
- Enqueue script only when side widget is used
- Address automatically generated ids in css [closed]
- Widget page stopped loading
- Check if widget is inside sidebar with PHP
- latest posts-widget displays all posts on archive page but works great anywhere else
- looping widgets to organize bootstrap grids
- Widget : html 2 dimensional array doesn’t work
- call widget from within shortcode
- How to change widget’s form color in admin?
- Removing widget without using unregister_widget
- Text Widget to Show database fields based on post
- Editing Help Section
- SELECT field options disappear when saving widget
- WordPress text filed input only inter value?
- Widget constructor: about $id_base and $options
- Display Login user name in Thim:login Popup widget
- WP renders HTML wrong when adding widgets
- Adding pagination to my theme [closed]
- How do I add after the tag in WordPress widget?
- Reposition the widget sidebar in Appearance->Widgets
- Hiding the widget meta box in the Appearance->Widget screen
- The WP_Widget class seems to run many times on a page load
- Stop ‘extends WP_Widget’ displaying the (backend) form, frontend?
- How to check widget-cpt meta and display its custom css in the head?
- How to call theme default widget in custom template?
- Editor Widget Role
- How can I build a widget area widget using the built in WordPress functionalities?
- Widget Logic code for different PMP membership levels
- WordPress wiget admin panel
- Filter “widget_comments_args” won’t work
- How to display a widget available for all themes
- widgets in contacts only
- How to create a widget on witch a registered user can create a checklist
- How to hide sidebar widgets in all pages except Hompage?
- Extending Widgets – Exclude # of posts field from Recent Posts Widget
- How can I create my own widgets in WordPress? [closed]
- Unable to add options on dashboard widget ?
- is it possible to create custom widgets page in admin?