These styles are styles applied through the block settings toolbar.
This code will remove the wp-container-id class for every block:
remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );
This was found on this page. It has more advice on removing block styles and altering them as well.
Also found on the above page was this code to remove all block styles on the front. It might help the second part of your question I missed.
function prefix_remove_core_block_styles() {
global $wp_styles;
foreach ( $wp_styles->queue as $key => $handle ) {
if ( strpos( $handle, 'wp-block-' ) === 0 ) {
wp_dequeue_style( $handle );
}
}
}
add_action( 'wp_enqueue_scripts', 'prefix_remove_core_block_styles' );
Related Posts:
- Customize Bootstrap checkboxes
- Is there a CSS parent selector?
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- css transition opacity fade background
- Text-decoration: none not working
- CSS transition shorthand with multiple properties?
- How to center HTML5 Videos?
- Using custom fonts using CSS?
- Why CSS3 Animation is not working?
- Why is my Bootstrap code not working?
- What is the difference between visibility:hidden and display:none?
- Center a position:fixed element
- How to change the background colour’s opacity in CSS
- difference between css height : 100% vs height : auto
- How to make canvas responsive
- Disable SSL / HTTPS for wordpress
- Forcing reload of editor-style.css
- How can I make the wordpress editor apply the selected template?
- How do I register/enqueue a custom CSS file?
- How do I remove specific styles from the parent theme css using the child theme css?
- What CSS rules are introduced to core blocks through wp-block-styles?
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- PageLines theme: how to change the background color of the main content vs. entire page?
- When using https, wordpress doesn’t use https for CSS and JS, and admin doesn’t work. How do I fix this?
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- Woocommerce include custom stylesheet after woocommerce styling [closed]
- raw code vs wordpress
- Remove id attribute from stylesheet link
- Font embedding in wordpress
- Is there a way to change the backround color of the native video player in wordpress?
- How to create fa-bars animated menu
- Only column gallery on mobile device
- Does costum code in the root folder get lost when wordpress is updated?
- footer disappear on some pages frequently
- Changing CSS FilePath for All Pages
- CSS Minification
- wp_add_inline_style breaking style and not working
- show count is out of the anchor tag in wp_list_categories
- jQuery UI styles conflicting with TinyMCE dialog
- How to add a custom CSS class to ALL links
- Why won’t my custom login page CSS load?
- Display Something in the Header After All Styles are Loaded
- wordpress – site not update after update style.css
- NGINX+wordpress: CSS being served but not applied
- How to apply CSS based on publishing date
- Menu toggle bar works only on some pages in WordPress
- How can I make css inline?
- Namespacing theme CSS
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- How to change the standard navigation menu color when using genesis [closed]
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Page versus post ID specific CSS ID?
- Add classes + taxonomy terms to wp_list_pages() output
- Chat window hiding behind Twenty Eleven header
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- WordPress footer always at the bottom of the screen-page
- wp_list_pages two columns
- TinyMCE on frontend style not working
- WordPress childtheme not loading any CSS/SCSS
- Why can’t blocks be hidden with jQuery?
- CSS: Appearance/Customise display different to actual display
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- Help locating old custom_css in PHP MyAdmin
- I would like to achieve a two column checkout page
- Make Responsive Specific Page in WordPress
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- How would I add this code to a single WordPress page?
- WP theme update causes child theme CSS problems
- How to change menu hover color to white on my theme? [closed]
- adding a favicon to site2 – site1/site2/favicon.ico
- WordPress crop image not working [closed]
- How to make CSS load live based on options clicked in the theme customizer?
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- Inserting a DIV Block Into a Listing of Excerpts?
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- Do you use css reset in your child theme [closed]
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- why does WordPress custom css convert alpha to hex values?
- Image is very blurry
- how to change the colour of this background
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How to add css to wp_head depending on the user role?
- WordPress site suddenly not showing some DOM elements but mobile is fine
- Editing size of h3 tag in wordpress on a one-off basis
- Content doesn’t fit on large size desktops like 2560×1440