Styles won’t be affected if you use different selectors. Create a custom stylesheet, and enqueue it immediatelly. When the page is ready just apply the styles to the mentioned responsive div, or create some logic behind it.
So for example if you have
<div class="custom-sidebar">Some content</div>
Enqueue custom style within functions.php
wp_enqueue_style( 'some-custom-styles', get_stylesheet_uri() . "/custom.css" );
Afterwards just assign whichever class you want
$( ".custom-sidebar" ).addClass( ".myClassFromCustomCSS" );
Related Posts:
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to create popup same as wordpress popup feature
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Ajax, jQuery and WordPress
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Why is my ajax call refreshing the page?
- How do I use WordPress PHP functions in my Javascript code?
- Admin-ajax.php is dying “0” without processing function
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Check if email address exists front end with AJAX in a plugin
- Best approach to fetch data from wp options to js file or php file
- Ajax contact form widget plugin data not insert in database
- wordpress add_action() issue in ajax call
- Ajax request sends url rather than data
- wc_get_template_part doesnt display the content [duplicate]
- Jquery POST Ajax Return null data in wordpress
- How to properly enqueue jQuery knob on WordPress without conflict?
- Ajax Call not Working in Plugin
- JS working when used normally but not in wordpress
- AJAX update fails for public/non-admin users
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Overwriting Plugin’s Ajax callback function from theme
- Javascript in plugin not working
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- WordPress ajax not working in registration
- How to get site homepage from plugin?
- get_option include in my adsense
- Ajax in Plugins: returns the whole page
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax response from Media Selection does not update ALL information more than once
- “Conflict” with jQuery (or its plugins)?
- Submit Form data to another page via Ajax (WordPress Way)
- How to add an element right after the article using jQuery?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to display checked posts on another page over AJAX? (like comparasion style)
- Localizing methods for jQuery append prepend wrap parent
- WordPress front end AJAX. Return 0 :?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Save user total active time after login in wordpress [closed]
- Asynchronous request in wordpress
- How to use custom Javascript code inside a plugin?
- Why does my jQuery plugin show up as text in WordPress?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- How do I make sure that my plugin only runs on article detail pages?
- Is there a better way of handling AJAX requests in WordPress?
- Disable submit button order
- WordPress API functions not working at AJAX functions.php call
- How to include my Ajax calls in one function instead of calling different ones every time?
- Calling a class method instantiated by ajax call in wordpress [closed]
- Load CSS files in header of Bones theme?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- how to request a script more than once in wordpress
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Using AJAX to run SQL statement and populate dropdown
- Javascript from Easy-Fancybox place into footer
- Adding a jQuery modal dialog to the admin area
- best way to run a php script away from the template?
- Ajax call not working in wordpress through a plugin
- Send Array from JS to php file then insert it in wp database through a plugin
- can’t unzip file
- Pass PHP variable to javascript
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- wp_query ‘s’ parameter does not work with WC_AJAX
- How do I reinit WordPress plugins dynamically using jS?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Error datatable whit ajax
- Fixed: Console.log twice in the edit function
- Cannot run script properly with my custom plugin
- Trouble with AJAX using GET
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Ajax DB issues
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Calling PHP function with AJAX
- Add style to body based on url
- Cannot pass value variable to WP AJAX functions
- jQuery Ajax not loading page with ACF fields
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- update_post_meta is not working for me when I use e.preventDefault for update button
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- Website always load twice on start
- How to use Datatable with Ajax when creating plugin on WordPress?
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Create a form and have custom menu display based on user answers?
- checkout stripe with plugin contact form
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Overwrite js code using WP_Footer
- Not displaying Woocommerce product page in lightbox
- How to use information from the database in the front-end?