I don’t think there’s a built-in safe way to do this, but you could directly modify the $wp_styles
global after things are registered but before they’re output, or at least use it to fetch the parameters a style was originally registered with.
global $wp_styles;
if( isset( $wp_styles->registered['a_stylesheet'] ) ){
$wp_styles->registered['a_stylesheet']->args="handheld";
}
Not ideal, but it may work for you.
Related Posts:
- Understanding child theme functions.php
- Parent theme CSS overriding child CSS rules
- Why would the child theme load in the Customize preview, but not on the site itself?
- “wp_enqueue_style();” don’t load new edited style
- wp_enqueue_style with style.php and WordPress functions
- Is it possible to use the featured image of a page as a css background without inlining?
- Want to create Child theme, but already edited Parent theme css files and some php files
- Plugin CSS not enqueing
- How to style options page in dashboard?
- two columns of posts on homepage, one of them “favorites”
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- Font Awesome changing default WordPress Font
- responsive.css in the WordPress should be prioritized
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs
- child parent styles enqueue order
- using wp enqueue style to create a CSS file specifically for a page template
- How to edit background color of only one sidebar?
- Inline CSS header style priority function.php Child (no enqueing I think)
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- How to locate parent theme functions and add functions to my wordpress child theme?
- How to let mobile navigation menu close when link is clicked?
- how to add functions to my function.php using a child theme?
- Where to find the html for WordPress site? [closed]
- How to remove image on single product and get product to span page?
- wp add inline style in loop
- Child theme not working properly
- How to NOT override inline css rules
- Child-theme suddenly stopped working [closed]
- How to create my own style.css file in an wordpress child-theme
- Styling best practices for single pages/templates
- Why is style.css not being enqueued?
- Childs PHP files not overwriting Parent’s PHP files
- Give priority to child theme stylesheet
- Is it possible to disable a function of a parent theme?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Add footer.php to WordPress child theme
- Disable child theme css on certain pages
- Theme Customizer – Dynamic CSS PHP File
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- wp nav menu: add attributes to menu items [duplicate]
- Put CSS inside a PHP file and include it the right way
- Missing sidebar parameter “fix” – before_content
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- How to use my style.css file outside of wordpress subdomain?
- Can I install/embed WordPress on a ‘single page’?
- Best way to schedule daily change in CSS parameter
- why this media query is not working / not loading when I put it in child theme?
- WordPress Child Themes
- How do I add a custom css to all posts without affecting homepage css? [closed]
- proper way to add css using functions.php?
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- RTL Stylesheet Confusion with WordPress
- Correct way to enqueue page specific CSS file
- Wrapping a Sidebar within
- How to make container class in PHP
- PHP in CSS file?
- Last class on last headline?
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to edit HTML of my website on WordPress? [closed]
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- How to Change CSS Colors from Custom Plugin Settings Page
- Warning: printf(): Too few arguments in helpers.php file
- How do I check or test a WordPress Auto Year Change Script?
- Can I set up a hover animation in CSS depending on a PHP conditional?
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- I can’t add CSS with functions.php
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Link to page with posts of specific type
- Conditionally load class in the comment section of the post page
- Need advice on theme customizer and child themes
- CSS images don’t show up with bloginfo
- Using theme options to change a border-radius value
- how to changes mobile menu toggle breakpoint in WordPress
- Applying css in functions.php
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Child-Theme Category View with modified permalinks (%category% removed)
- remove_action from parent theme using child theme functions.php
- oceanwp+woo mobile cart sidebar text
- How to hide a div section when user is logged in, in single product woocommerce
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Drop down question
- Can’t display anything through homepage text editor
- Load script and styles using an array of resources
- If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent’s header.php?
- Fix hover images blink
- Hot to edit WooCOmmerce dashboard?
- Blog Image and Title in Right Sidebar
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Position a repeated article blocks
- Child theme functions.php file change database entries
- Click to expand menu
- Hide button based on PHP result
- WordPress – Image href for home menu nav not working
- WP_Nav Highlight Parent Issue
- If I define a variable in header.php, how do I make it available to templates?
- New to wordpress. Need Help with templates [closed]
- Parse error: syntax error, unexpected ‘}’ in
- WooCommerce Checkout Cart [closed]
- How can I use AJAX in child theme template?