I want to remove the bold option from the toolbar in the wordpress paragraph block.
At the moment, it cannot be done, the paragraph block doesn’t use the format API but instead hardcodes the markup for those buttons in the toolbar component
You could:
- strip out the bold tags on save in PHP
- hide the button using CSS
- Add a CSS editor style so that the font weight of bold text is the same as unbolded text
- Open a feature request on the GitHub repo for Gutenberg
But:
- These won’t prevent the bold shortcut of cmd+b
- Users can still use markdown shortcuts by writing
*bold text*
- Users can also write the bold text somewhere else, then copy paste it into the paragraph block
Related Posts:
- Add To Gutenberg Sidebar
- How to detect the usage of Gutenberg
- What is the advantage of ‘register_block_type’ (the PHP function) when creating custom blocks?
- Serialize custom block with InnerBlock
- What replaces wpColorPicker in Gutenberg?
- Gutenberg Range Control default from meta value
- Find all the places where a block type is used
- Why is the new Gutenberg editor so narrow, and how to make it wider?
- WP Blocks – Gutenberg – not rendering $content
- Why does the custom HTML block not preserve the HTML characters?
- Can’t get dynamic Gutenberg block to render on the frontend
- Gutenberg change/remove “Write your story” placeholder in custom blocks
- How do I listen for a change in an innerBlock child?
- How to enable Gutenberg Block Editor on taxonomy term pages?
- What’s the absolute minimum code that I need to create a dynamic block?
- How to make 2/3 width column in Gutenberg
- Change default colors in paragraph block settings
- Gutenberg Reusable Block of WordPress
- Add custom attributes to link in Gutenberg
- How do I add a Gutenberg editor to a custom options page
- Custom Gutenberg Block: Excluding an allowed block from InnerBlock’s templateLock={‘all’}
- Determine if block has already been registered
- InnerBlocks breaks Flexbox and CSS Grid styles
- Is there a way to set the gutenberg color palette outside the theme?
- Gutenberg get withState variable in save function
- Gutenberg block JavaScript localisation on Polyglots does not work
- Align Group blocks left or right
- Unable to override MediaPlaceholder component
- Run the edit function of parent block when something changes in InnerBlocks
- do_blocks does not include its CSS
- Track Block Pattern Insertion Within the Block Editor
- block variations registration in PHP
- How to add screen reader text to links inserted in the block editor?
- Auto synchronize saving of custom block editor entities
- Store data from nested block of gutenberg
- Output content of post excerpt into Innerblocks within Gutenberg block
- How to add a link in a translation in gutenberg
- component does not render in block save
- Adding block programmatically to InnerBlocks
- Filter root element of tag cloud block
- How `window.wp.oldEditor` is being set in the editor?
- How to use Gutenberg blocks in widgets?
- Don’t expand “Most Used” accordion item when adding new block
- Is it possible (safe) to create custom blocks using ES Next format?
- How do i get the link to a block?
- How to prevent Block Editor from adding id to block markup in save function?
- Dequeue Gutenburg Block Library CSS (‘wp-block-library’) in Admin
- How do I make sure the gutenberg block CSS is not disrupted by generic styles?
- Working with external library in gutenberg block
- Download Image from URL and Create a new Folder in wp-contents and save them there
- Using full site editing, can I edit just one specific post / page to be unique?
- Detect selected block pattern from a specific Pattern category
- How to add a message when post category is empty (the category have no published posts)?
- Add javascript file to a block pattern
- Block editor not recognizing markdown
- Can’t add front end script file using block.json for a custom block
- How to create Gutenberg patterns and patterns categories based on CPT posts and CPT terms?
- Gutenberg Block: Query for posts with blocks and sort by attributes
- How to Disable “Block Recovery” for HTML Blocks in Gutenberg
- Block error: post_taxs_obj is not a valid property of Object
- useSelect in event callback – not retrieving value on time
- How to Batch Convert Gutenberg post to Classic post?
- How to create pre-designed page layouts for Gutenberg?
- Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
- How to: Provide component with innerBlocks to WordPress Gutenberg’s save function?
- How can I display instagram block with parse_block?
- Do not wrap custom block in an additional DIV but instead use only the JSX I provide
- Line break in Gutenberg post title?
- Basic Block Usage Help on WordPress
- Can’t extend my custom gutenberg block
- Is there an easy way to remove the data-preserver-spaces span from blocks?
- How to increase width of code block in WordPress blog?
- Video, embed, html block usage out of the_content
- applyformat in gutenberg doesnt work and no errors
- Why does Gutenberg adds 4 around blocks? And how to change this?
- admin_notices not shown
- Have parent block’s isSelected be true if an innerblock is selected?
- How can I add the option to format to list in RichTextToolbarButton?
- Layout Settings in the new Gutenberg editor
- How to get blocks with same heigh in columns?
- Gutenberg: Issue trying to commit locally
- How to display dynamic block editor on front-end?
- Enable varying text for Phone, Tablet and Desktop
- Debouncing Input value with block attributes
- Using the block theme in production
- When using the MediaPlaceholder component, will skipping blobUrl handling break something?
- Add another option to default link control settings panel?
- With full-site-editing menus, how do I create a non-linking top-level menu item with linking sub-pages
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- How do I add filters in Twenty-Twenty-Three without a functions.php?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Add a new option to Social Link block
- Editing Inline fonts/typeface using the block editor
- What is the proper way of using React Hooks in Gutenberg on frontend?
- How to add Gutenberg editor on frontend page?
- WordPress gutenberg block serverside rendering html elements not showing up
- Gutenberg: change block Components Popover properties
- Unable to register a block using block.json in Block Editor
- $attributes not defined in block.json PHP template for ACF blocks