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
- Live Preview while customizing is not showing the updates while editing in WordPress
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- How to enqueue stylesheets in child-theme functions.php?
- Dequeing Parent Fontawesome Deques Parent Styles
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Warning: Use of undefined constant all – assumed ‘all’ (this will throw an Error in a future version of PHP) in C:\Users\…….. on line 6
- Drop down question
- Trying to generate a CSS file in wordpress uploads folder
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- WP Website is shown in HTML
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- Enqueue assets from multiple directories using add_action/do_action
- How to print all the inline styles in the WP_Styles instance together with their keys?
- I cannot find the wordpress.scss file that my live site is pulling from
- The style.php file inside theme-engine folder has other content on FTP
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- Call a single function on two different methods with hooks
- I have a lot of JavaScript erorrs after SSL someone can help me?
- WordPress Slider is not working
- I got big white screen when i attach main style sheet of Html in functions.php
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Load script and styles using an array of resources
- register dependency css and js inside a plugin class
- Hide author from search results meta, still display date and categories
- How to display post meta bellow every posts
- How to change the structure/order of sections in a WordPress theme? [closed]
- How to edit button permalink inside function.php using a child theme?
- Modifying child theme’s header
- Add my footer menu to the header
- How to Change Site Elements based on referring URL
- Replace header with large image on home page only, using Genesis child theme
- Add a default style if no Featured image is selected
- Add Shortcode to ::before class
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- Make a full-width wordpress page
- Add the shortcodes from the enfold theme to the other theme
- My Child Theme CSS Isn’t Working
- Site title not showing. Please help me
- 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
- WordPress child theme, creating a custom php template page
- Bring Font Awesome icons inside menu A tags
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Font size decreases when child theme is created from parent theme?
- Styling a specific post after hovering over it
- Hot to edit WooCOmmerce dashboard?
- Using Sprit-sheet on WordPress categories
- Blog Image and Title in Right Sidebar
- Trying to add get_the_title hook to this line
- How to override html codes in wordpress?
- random woocommerce categories are not showing when count enabled?
- Add class for the_post_thumbnail_caption()
- custom field – changing an element or background of id div – different versions not working
- Target a specific container to style on WordPress storefront theme
- How to display post_content from database in different on template page?
- Add Text Area To Child Theme’s Home Page
- How to include different html tags in the header for different pages?
- Displaying POST content with HTML tags and all
- remove blank space where sidebar was
- Child Theme not loading multiple stylesheets