Use the style_loader_tag
filter:
add_filter( 'style_loader_tag', function ( $tag, $handle ) {
return str_replace( " id='$handle-css'", '', $tag );
}, 10, 2 );
Related Posts:
- Using wp_add_inline_style without a stylesheet
- How important is it to enqueue a theme’s stylesheet?
- Enqueue a stylesheet for login page and make it appear in head element
- Why I can’t add a CSS style in this WordPress theme?
- The difference between calling wp_enqueue_scripts to load scripts and styles in custom theme
- Adding customizer styles with wp_add_inline_style
- What can I hook into after_setup_theme?
- Identifying the priority of style.css so I can make a small CSS file load last
- Adding inline styles from a widget
- The best way to add stylesheets to WordPress
- Advantages of using instead of wp_enqueue_style()?
- How to add dynamic inline style?
- Enqueued Stylesheets Effecting Admin Styles
- De-registering parent style sheet css recommended?
- enqueue_style is not working
- Dequeue a style file which is making website load slow!
- Is my approach to enqueue styles inefficient?
- Child theme style.css versioning
- Disable wp_enqueue_style for theme on wp-admin
- functions.php not hooking up with style.css
- How can I let templates choose which stylesheets are enqueued?
- Stylesheet not linking
- Theme Loading Into Dashboard
- How to check if a WordPress core block is active in sidebar
- Font Awesome 5 Free – far working but fas is not? [closed]
- How remove render blocking css from wordpress when you build a theme?
- filemtime(): stat failed warning within a child theme
- How do I use a color from theme options?
- Ideal inline dynamic CSS injection
- How to include a file only on dashboard widgets page?
- Having issue with WordPress wp_enqueue_style
- theme style is applied on the dhasboard rather than the website
- Are there any caveats to compiling all of my theme’s SCSS into the style.css file in the theme root?
- Adding google fonts to WordPress theme
- Displaying front side empty with one file attached problem
- Find out the reason that the Styles and scripts in the theme are loading properly in localhost but Not in server after deploying
- Using wp_add_inline_style Inside a Template File
- Different stylesheet for different pages not working fully
- How to output wp_enqueue_style() in HTML head instead of footer
- Enqueue script/style with multiple GET parameters
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- What’s the difference between home.php and index.php?
- get_template_part vs action hooks in themes
- Google Maps not displaying in wordpress using Google Maps Javascript API
- When to use esc_url, esc_html, esc_attr, and friends?
- What is the purpose of an extra file for translation?
- Problem with registering menus – What to do when other solutions aren’t working?
- add_theme_support(‘my-custom-feature’)
- Adding dashicon fonts to the admin of pre 3.8 installs
- Change display of featured image for pages in twenty seventeen theme
- Do I really need the div class entry?
- How to manipulate “add media” pop-up
- WordPress Gutenberg Theme: Structure, Hierarchy and Custom Templates
- How to Take Ownership of a Theme
- Best way to start becoming a wordpress developer
- Why wp_head() function not loading style.css?
- How to make content editable from admin page?
- Redirect Old .php URLs to New WordPress Page
- Widget items disappearing
- Add submenus to Theme options menu
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- How to add new args data in $wp_customize->add_setting?
- Is the current Theme version number cached somewhere?
- PHP Template way of coding for wordpress theme development
- display menu with out list tags
- Custom form in theme template displaying internal server error upon submission
- Get data from style.css file and from from users->your profile
- Getting Different Size Of Attachment Images
- 2 loops, is_home won’t work, count is off
- Is there Photo Categories?
- WordPress does not load page template or anything else, just empty page with header and footer
- add shortcode support in customizer
- How to make my themes compatible with different WordPress versions?
- Exclude subcategory from wp_query
- Some doubts about WordPress handle the horizontal main menu visualization
- How To Display Value from Theme Options Field in Front End Template?
- Custom search template is showing 404 when adding query string
- How do I restructure the comment HTML layout?
- How to set a custom URL for the iframe in the customize page
- How to Show Next, Previous, and Page Numbers with wp_link_pages
- Let user publish posts on community page
- How to perform str_replace on the results of wp_list_pages
- How would I get this to work – send to post from thick box
- Safe way to echo wp_trim_words
- Show category and description
- How can I demonstrate themes well?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- WordPress custom jquery not found
- How to using custom DB tables
- Programatically add a page in WordPress
- Replacing static code in a template file with a sidebar and widgets?
- How to remove proudly created by WordPress in theme?
- How to load custom php file in WordPress themes
- Roll my own theme or customize an existing one [closed]
- Add wrapper for a specific sub-menu
- Theme’s featured image option is not showing up