If you’re using gutenberg choose a “group” block. You’ll be able to set the background to any color you would like. If you want the group to span the width of the page you’ll need to set the alignment to “full-width”. When you hover over the block itself you’ll get a toolbar pop up. Make sure you’re on the “group” block! Then look for the alignment icon and choose full width.
If you’re looking to put content into the group and want it contained, add whichever block you need into the Group.
Related Posts:
- Are there Gutenberg container blocks?
- show classes as dropdown in guttenberg`s additional css classes input box
- Style new block-editor alignfull class without scrollbars or overflow
- What CSS rules are introduced to core blocks through wp-block-styles?
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- If I dequeue Gutenberg Stylesheet will that have any effect on WordPress 5.0.1?
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Remove WordPress/Gutenberg button styles for ACF blocks
- Gutenberg Additional CSS Class without modifying theme?
- How to override Gutenberg admin CSS
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Can you edit WP gutenberg block css without a plugin?
- How to stop Gutenberg from outputting inline CSS for specific blocks?
- Enqueue styles in new site editor in WordPress 5.9
- create bootstrap columns inside editor group block
- Add Custom Alignment Option to WordPress Blocks/Gutenberg
- Simple way to add custom class and ids to individual Gutenberg blocks
- The Global Styles missing
- ACF Gut block broke wordpress default style?
- Scroll code block instead of wrapping text
- Default paragraph block styles just for pages NOT for posts?
- Custom CSS in Widget editor (Gutenberg) gets stripped out
- Custom Gutenberg color classes naming convention
- Adding a new block editor color option to a theme
- Stop custom Gutenberg styles taking over other admin bits?
- Why can’t blocks be hidden with jQuery?
- Gutenberg CSS Issue
- Trying to make an image a circle in Gutenberg
- What is the cleanest way to shrink Gutenberg Blocks to container width?
- Gutenberg Editor: display error with a combination of transform and background-attachment:fixed
- Default Gutenberg CSS on frontend
- Customizing the CSS for the post/page editor?
- Use of CSS classes in editor-blocks.css file
- Images at the same vertical position in multiple columns
- How do I make my block-editor styles match my front-end styles?
- Dequeue classic-themes.min.css
- Is there a way to edit the fonts of headings without a plugin (in the 2022 theme)?
- Narrow paragraph block aligned to left of “wrapper”
- adding additional css classes have no effect within block editor
- How do I change search input padding for blockbase child theme?
- Insert a group block inside a list item
- Full Site Editing Non-editble global styles?
- Block content rendered with inline CSS. How do I reuse it in a headless setup?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- How to remove class=”wp-block-heading” from Heading tags?
- Gutenberg: where to find style settings
- Custom block style not working in the editor
- Customize margin between paragraphs using the Gutenberg Style editor
- Style priority in theme.json
- How to add a class to a core block in both admin editor and frontend?
- How to force Gutenberg to follow all custom CSS styling in preview?
- Disable WP-Elements Class Creation (Gutenberg)
- Block editor: can’t change format of inline code blocks
- grid overlapping problem
- CSS Selector to override default theme.json custom properties in theme stylesheet
- Adding border to SVG image
- Gradient borders
- How do I rotate text in css?
- how to offset a CSS border up and left
- SVG Fill Color Not Working
- Reset/remove CSS styles for element only
- Add a link to an image in a css style sheet
- Changing title to lowercase [closed]
- How can I insert HTML attributes with an existing TinyMCE button?
- Hiding certain panels in dashboard
- How to change the order of the comment_form fields with css?
- customizing recent posts
- Why is WordPress changing my HTML code
- Best way to install Bulma (CSS Framework) with WordPress and Genesis
- How to create a custom CSS class for a specific page template?
- Responsive Author Style in BBpress?
- Older isotope portfolio rows shifting downward by 1 pixel on hover
- What does generate .less file? [closed]
- Certain aspects of site suddenly not working in Chrome and Firefox
- wordpress css file
- CSS – why does my sidebar drops to the bottom of the page? [closed]
- Show/Hide Div for Login Mask
- Where are the contents of WP_Head
- When replacing #site-title with an image – why must it be located in root?
- How to make a function to play only on the home page?
- Redirect Css files to https
- How can I add a stylesheet to the Classic Editor page?
- Where to add this code for a Modal box to work? [closed]
- How to enqueue stylesheets in child-theme functions.php?
- Unable to use Datepicker in a table when inserting a row
- Text editor toolbar z-index conflict with location plugin pop
- How do I move my logo from the center to left (Pixgraphy theme)
- Page flickers when new html5 video loads
- Setting up Custom Background [closed]
- Customiser colour picker and best practice for updating css
- Editing anchor style in main navigation bar
- Load specific js & css based on class or ID?
- I can’t change the background color of a specific page
- Add HTML input tag to to site navigation
- What can cause JavaScript and CSS files to be minified?
- can i custom rendered content from API?
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- Wrap post titles containing slashes on narrow viewports
- When using https, WordPress doesn’t use https for CSS and JavaScript, and admin doesn’t work. How do I fix this?