WP Manifestindependent plugin directory
manifest / themes / remove-wp-site-blocks

Remove WP Site Blocks Wrapper

WordPress plugin to remove .wp-site-blocks wrapper

by 8px · github.com/philippwinzer/remove-wp-site-blocks

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/philippwinzer/remove-wp-site-blocks/archive/refs/heads/main.zip

A lightweight WordPress plugin that removes the .wp-site-blocks wrapper div automatically generated by WordPress 7, which can interfere with ACSS framework and custom styling.

Description

WordPress 7 introduces a new .wp-site-blocks wrapper div that wraps the main content. While this may be useful for some themes, it can interfere with custom CSS frameworks like ACSS (Automatic CSS) and break existing layouts.

This plugin removes the wrapper using multiple approaches:

  • Server-side removal during block rendering
  • Client-side JavaScript fallback for edge cases

Installation

  1. Download the plugin
  2. Upload to /wp-content/plugins/remove-wp-site-blocks/
  3. Activate through the 'Plugins' menu in WordPress

Requirements

  • WordPress 7.0 or higher
  • PHP 8.1 or higher

Features

  • ✅ Removes .wp-site-blocks wrapper automatically
  • ✅ No configuration needed
  • ✅ Compatible with ACSS framework
  • ✅ Lightweight and performant
  • ✅ Can be deactivated anytime

License

GPL v2 or later

Changelog

1.1.0 - 2026-05-27

  • Improved: Switched to output buffering for more reliable wrapper removal
  • Fixed: Now removes .wp-site-blocks wrapper from entire HTML output, not just specific blocks
  • Enhanced: Better compatibility with various WordPress themes and page builders

1.0.0 - 2026-05-25

  • Initial release

Author

8px