Skip to content

Add settings for Heading default follow theme margins #3673

@bfintal

Description

@bfintal

Add 2 new settings under our admin settings:

Default to Theme Margins for Headings (Posts)
When enabled, newly added Stackable Heading blocks in Posts will use the theme’s default margins automatically. Existing blocks are not affected.

Default to Theme Margins for Headings (Non-Posts)
When enabled, newly added Stackable Heading blocks in non-Post content (Pages and custom post types) will use the theme’s default margins automatically. Existing blocks are not affected.


Place these settings in the admin Stackable settings under Editor Settings > Block Defaults, (this is a new section, add this below Block Widths).

Add implementation for these as well. Both should be disabled by default

If Default to Theme Margins for Headings (Posts) is enabled, then when inside a post, adding a stackable heading block will have the use theme margins as enabled by default. Non-posts / pages should not be affected.

If Default to Theme Margins for Headings (Non-Posts) is enabled, then when inside non-posts / pages, adding a stacakble heading block will have the use theme margins as enabled by default.

Things to watch out for

  • Adding blocks via the design library should not be affected by this. The designs in the library should be set already.
  • Existing heading blocks should still work fine and not produce an error when the settings are enabled

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions