Set the width of the div to 100% and remove the float for the media query used for smaller screens like this:
@media screen and (max-with 600px){
.widget-area{
float: none;
width: 100%;
}
}
And for the desktop view:
@media screen and (min-with 600px){
.widget-area{
float: left;
width: 25%;
}
}
BTW, this is just CSS related and has nothing to do with WordPress
Related Posts:
- Modify ‘Sizes’ Attribute for Images with Specific Class
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- How to output built-in widgets with number in range as class?
- Programmatically add widgets to sidebars
- changing wp-admin/widgets.php
- dynamically add scripts to WP_Widget widget() method
- Get Widget Instance inside Widget
- Add the sidebar/widget editor to the post edit screen?
- How do i manually place a widget code
- How to Validate Widget Input
- Remove before_widget / after_widget content from Wp_Widget_Text
- Insert a span inside widget title to give a different color to the second word
- Add a select box to all widgets
- How to avoid widgets added to sidebar on theme activation?
- WordPress “include TEMPLATEPATH” or?
- Display specific widgets in different area’s around the page
- Create More Widget Holders Like Active Widgets and Inactive Widgets
- /images/image.jpg not working in sidebar
- Unable to save widget contents
- Use wp_enqueue_style based on user option in widget
- WordPress widget args – classname?
- Creating a admin widget for /wp-admin/post.php?
- dynamic_sidebar() returns false in admin section
- Moving comments section to left of content (Twenty Thirteen)
- Custom Tag Cloud widget missing tags
- Adding custom html and standard widgets to sidebar
- How to add new sidebar widget area to child theme?
- Get widget Title from widget id
- Include chat (HTML, js, css) in all pages of WordPress
- Uses Cases for the Calendar Widget
- WP_enqueue_script() loads them always in wp_footer()?
- Problem with widgets
- How to make multi -column, interesting home page in Weaver 2010?
- Multilple single-use widgets with the same output callback
- wp_editor is not rendering shortcode
- Recent Posts – Show all posts
- Widgets missing after update
- Dashboard Widgets – Add Admin Page With Same Functionality
- How to display an RSS feed widget inside a page?
- widget dropdown menu code
- isSavingPost() for widgets
- Newbie: Help with Vertical Spacing on Footer Widget [closed]
- Content of widgets keep disappearing over and over again
- custom widget does not saved value
- php to add a link into wp widget without specific url
- Widget Select Options not saving
- How to call widget by widget’s id?
- Why is my custom widget breaking another one?
- in_widget_form detect sidebar id
- function WP_Widget::widget() must be over-ridden in a sub-class. when create new Widget
- I have a widget area in my header. How can I have that display a different widget depending on what group is shown?
- How do widgets access posts they should display?
- How to move top widget to the left – Responsive Theme WordPress
- How do I deactivate widgets by name?
- Remove links from meta widget
- Can’t display custom widget
- How to make home widgets appear horizontally
- add_action not working within widget() of WP_Wdiget
- WordPress custom widget undefined variable notice
- Multiple rows of footer widget areas
- How do I make the title of the following widget editable?
- Escape HTML on WP input
- Add links widget to self-hosted blog?
- prevent custom widget file names from showing in Appearance > Editor
- Issue with checked() echoing on to page
- Adding dashboard widgets to show – custom post type stats, information from other plugins
- Upgraded to 3.3, My Widgets Disappeared
- Register new widget
- How to use register_sidebar’s ‘before_widget’ unique id generator into its other parameters like ‘before_title’?
- Set a dashboard widget to the top?
- Dynamic Bootstrap Carousel ID per widget on same page
- How to decorate WP_Widget_Text?
- After adding widget the style is messing up
- Tabs widget from Elementor is not showing the content in it to users. But at admin side it is working fine
- Siderbar implementation with collapsible bootstrap cards
- Title not Emptying in a Widget
- How to implement widgets error output with data validation?
- Simple SCript Not Displayed in WIdth
- Conditionally Load a Script if a Certain Widget is Shown on a Page
- Where to add a widget class?
- Nonce and widget
- Active Sidebar Conditional Question?
- Paginate recent posts widget
- How to give a File Upload option in wordpress Widget backend?
- Pass widget variable to external function
- Widget front-end fails to echo as expected from checkbox
- Widget area does not show any contents for specific users in admin interface. How to go about debugging?
- Creating an custom admin page for editing widgets
- Help me tidy up my widget code
- Neaten content — different widget or CSS change?
- Show or hide a widget from pages
- Author Link in Recent Posts Widget
- Custom widget breaking widget section in admin menu
- Unique widget id in sidebar
- Custom widgets do not appear in dashboard > appearance > widgets
- Can’t use is_home in template-functions.php
- How can I order the “Woocommerce Products Widget” by the sales date? [closed]
- how to add multiple menu in custom menu widget?
- How can I add a toggle element into an image box element? [closed]
- getBlockVariations(…) is undefined in Widget and Template Part editors but not Post Editor