PRC's override/extension of the WordPress core/separator block.
Block Namespace
prc-block/core-separator
What PRC Customizes
- Removes the "Wide Line" block style from the editor
- Overrides separator rendering to use only a top border (removes bottom border)
- Ensures consistent 1px border width
Supports Modifications
None.
Additional Attributes
None.
Available Styles
None. The core "Wide Line" style is removed via unregisterBlockStyle.
Style Overrides
File: style.scss
- Border normalization —
border-bottom: noneon.wp-block-separator; non-editor separators (:not(.wp-block)) getborder-top-width: 1px
Editor Enhancements
File: index.js
- On DOM ready, unregisters the
wide-lineblock style fromcore/separatorusingunregisterBlockStyle - Imports
style.scssfor editor/frontend styles
Frontend Interactivity
None. No view.js file.
PHP Rendering
File: class-core-separator.php
register_assets(inithook) — registers the style handleregister_editor_script(enqueue_block_editor_assetshook) — enqueues the editor script (for style unregistration)register_style(enqueue_block_assetshook) — enqueues the style
No render filter modifications.
Block Markup Example
<hr class="wp-block-separator has-alpha-channel-opacity" />
Variations
None.