My solution is to use CSS to simulate numbers (or bullets) on a group (which is a <div>). So I first created groups within groups, and then I added CSS class on the topmost group:
.numbered-list {
counter-reset: item;
}
And for each item, the group has this class:
.numbered-list-item {
}
.numbered-list-item:before {
content: counter(item) "";
counter-increment: item;
line-height: 1;
display: block;
}
Now the groups behave just like a numbered list, and they can contain anything.
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
- Styling last item in ul [closed]
- 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?
- Complex List Field – Gravity Forms
- how to arrange the bullet list items in vertical [closed]
- 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
- How can I add a section with a different background color?
- 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?
- 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
- CSS Background Opacity [duplicate]
- draw diagonal lines in div background with CSS
- Why are my CSS3 media queries not working on mobile devices?
- CSS3 Transition – Fade out effect
- sass :first-child not working
- Twitter Bootstrap – add top space between rows
- Hex colors: Numeric representation for “transparent”?
- CSS to select/style first word
- img-responsive in Bootstrap does not work
- sizing div based on window width
- Enqueue Google Web Fonts Without Messing Up Symbols In URL
- Adding style sheet to specific page
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- Can I use theme options to change two things at once?
- wp_head function causes 30px blank space [closed]
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- How to stop my themes CSS changing the WordPress interface/?
- loading a custom stylesheet in a function
- Keeping CSS model open after form submission
- Add class to navigation link of page
- Is there a way to add new div class via a theme’s Additional CSS interface?
- Keep comments but turn off commenting
- Long post titles don’t move to next line
- How to not load stylesheet and how to load a second stylesheet on a page
- Plugins not showing up for custom template
- Horizontal drop down category with hover effect working
- WordPress Sudden Loss of All CSS And Tons of JQuery Errors
- Can’t find a tag to style
- Removing Image Links from Custom Post Type
- Add inline CSS to login page with wp_add_inline_style
- Cannot add a class to metabox
- theme RTL make big white space in mobile mode and you need to scroll to see the site
- I want to change change the arrangement of the grid of posts displayed by the theme on the Search page (read the description for better understanding)
- Can’t center post thumbnail with bootstrap [closed]
- Force include a stylesheet from parent theme
- Site name not showing in browser bar, only url
- Style tag on wp_footer
- Outputting the blogposts or the_content()
- Apply Classes to post text inside editor
- Parent style messing up with Bootstrap [closed]
- Layout totally broken