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
- What’s the preferred method of writing AJAX-enabled plugins?
- force enqueue script to be first in order of prominence
- Editor not displaying dynamically after clicking on the button
- How to fetch serialized data from wordpress options
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- ‘Lazy loading’ list of posts with pagination
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- How to include admin-ajax when loading external javascript
- How to remove an Ajax action
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- jQuery function didn’t work in my plugin
- Handling jQuery Component Collision
- JQuery not working in my plugin [closed]
- WooCommerce get_price returning wrong price when used via ajax
- How to test nonce with AJAX – Plugin development
- How to load plugin after page is loaded – pagespeed issues
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Form isn’t inserting data into database with ajax plugin
- AJAX search posts and pages
- Updating the Drag-To-Share eXtended share URLs?
- Best place for if/else piece of code related to custom plugin?
- wp.media javascript issue with on select
- jQuery for custom plugin not working with Divi theme
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- How to load wp_editor via AJAX
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Using color picker in plugin, does input attribute order matter?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Redirect to another page using contact form 7? [closed]
- Delay JavaScript files from loading
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- How to display checked posts on another page over AJAX? (like comparasion style)
- 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 use custom Javascript code inside a plugin?
- 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?
- WordPress API functions not working at AJAX functions.php call
- Calling a class method instantiated by ajax call in wordpress [closed]
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- 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
- Trouble with AJAX using GET
- 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
- Create a form and have custom menu display based on user answers?
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Overwrite js code using WP_Footer
- How to use information from the database in the front-end?
- Storing Array of values into wordpress options
- My ajax request don´t work and return 0
- How can I use wp_ajax_response for front-end error reporting?
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- Need to hide an element depending on date and post category
- AJAX doesn’t pass variables to the php function in the plugin
- WordPress plugin ajax post parameter
- Is it possible to run javascript on plugin deactivated?
- How do I output user_registered time in my correct timezone?
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- How to access values from your own settings page in javascript?