Skip to content

About

Extends WordPress core/post-title block to support normal text (Level 0/paragraph) in addition to heading levels H1-H6. Adds a new option in the block settings to render post titles as regular paragraph text instead of headings.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

WordPress Post Title Block Extension

A WordPress plugin that extends the core post-title block to support normal text (Level 0/paragraph) in addition to heading levels H1-H6.

Features

  • Level 0 Support: Render post titles as normal paragraph text instead of headings
  • Block Editor Integration: Seamless integration with WordPress Gutenberg editor
  • Easy Controls: Simple dropdown in block settings to switch between heading levels and normal text
  • Translation Ready: Internationalization support with text domain
  • No Theme Conflicts: Works with any WordPress theme

Why Use This Plugin?

Sometimes you need post titles to appear as regular text instead of headings for:

  • SEO Optimization: When you want to control heading hierarchy manually
  • Design Flexibility: When your theme's H1-H6 styles don't fit your design
  • Accessibility: Better semantic structure for screen readers
  • Content Strategy: Different content types need different title treatments

Installation

As Must-Use Plugin (Recommended)

  1. Download the plugin files
  2. Upload to /wp-content/mu-plugins/ directory
  3. The plugin will automatically activate

As Regular Plugin

  1. Download and extract the plugin
  2. Upload to /wp-content/plugins/ directory
  3. Activate through WordPress admin panel

Usage

  1. Add/Edit Post Title Block: In the block editor, add or select a post title block
  2. Open Block Settings: Click the block settings icon in the toolbar
  3. Choose Title Type: In the sidebar, expand "Title Settings" panel
  4. Select Level: Choose from:
    • Normal Text (Level 0) - renders as <p> tag
    • H1 through H6 - renders as heading tags

Screenshots

Block Settings Panel

The plugin adds a new "Title Settings" panel in the block inspector:

Title Settings
├── Title Type: [Dropdown]
│   ├── Normal Text
│   ├── H1
│   ├── H2
│   ├── H3
│   ├── H4
│   ├── H5
│   └── H6
└── Help text explaining the selected option

Technical Details

Requirements

  • WordPress: 5.0 or higher
  • PHP: 7.4 or higher
  • Tested up to: WordPress 6.3

How It Works

The plugin extends the core post-title block by:

  1. Adding Level 0 to the allowed heading levels
  2. Providing a custom control in the block inspector
  3. Modifying block metadata to support the new level
  4. Ensuring proper rendering in both editor and frontend

Files Structure

extend-post-title-block/
├── extend-post-title-block.php    # Main plugin file
├── js/
│   └── extend-post-title-block.js # Block editor JavaScript
├── languages/                     # Translation files (optional)
└── README.md                      # This file

Development

Building from Source

  1. Clone this repository
  2. No build process required - it's vanilla JavaScript and PHP

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit changes: git commit -am 'Add feature'
  4. Push to branch: git push origin feature-name
  5. Submit a pull request

Coding Standards

  • Follows WordPress coding standards
  • PSR-4 autoloading compatible
  • Internationalization ready

Compatibility

WordPress Versions

  • WordPress 5.0+
  • WordPress 6.0+
  • WordPress 6.3+

PHP Versions

  • PHP 7.4+
  • PHP 8.0+
  • PHP 8.1+
  • PHP 8.2+

Themes

  • Works with any WordPress theme
  • Block themes (Full Site Editing)
  • Classic themes

Frequently Asked Questions

Q: Does this affect existing post titles?

A: No, existing post titles will continue to work as before. The plugin only adds new functionality.

Q: Can I use this with other post types?

A: Yes, the post-title block works with any post type that supports titles.

Q: Does this work with custom themes?

A: Yes, the plugin works with any WordPress theme since it extends core functionality.

Q: Is this translation ready?

A: Yes, the plugin includes text domain and is ready for translation.

Changelog

1.0.0 (2025-09-23)

  • Initial release
  • Added Level 0 (normal text) support to post-title block
  • Block editor integration
  • Translation support

License

This project is licensed under the GPL v2 or later - see the LICENSE for details.

Support

Author

Ramon Kaes

About

Extends WordPress core/post-title block to support normal text (Level 0/paragraph) in addition to heading levels H1-H6. Adds a new option in the block settings to render post titles as regular paragraph text instead of headings.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages