This module helps migrate blocks and their configurations from the W3CSS theme to the new Solo theme. It preserves block order, status, and automatically maps regions for a smooth transition.
Solo Copy Blocks copies the blocks of your default theme into the Solo theme with one button. It is for site builders who are moving a site to Solo and want the same block layout.
It deletes every block already placed in Solo first, then recreates the default theme's blocks there with their settings, visibility, weight and enabled status.
Start here
Features
- "Copy Blocks": one button on the page "Copy Blocks to Solo Theme", under Configuration > System. The module has no other settings.
- What is copied: each block's plugin, settings, visibility, weight and status (enabled or disabled). Blocks are copied in weight order. A new block ID is
solo_plus the old ID without the source theme prefix. If a block with that ID already exists, it is skipped and a warning is logged. - Regions: two regions are renamed on the way:
fixed_search_barbecomesfixed_search_blockandbottom_forthbecomesbottom_fourth. Messages blocks go tosystem_messagesand Help blocks go tocontent. A block from a region Solo does not have goes tofooter_menu, so check that region after the copy. - Safety checks: if Solo is the default theme, or the default theme has no blocks, the module copies nothing and deletes nothing. It shows an error that says so. There is no confirmation step and no undo.
- Messages and log: the form reports how many blocks were copied, or that no blocks needed migration. The module help page shows its README. Warnings and errors go to the
solo_copy_blockslog channel.
Installation: get started in 3 steps
- Install the module with Composer:
composer require drupal/solo_copy_blocks - Enable it on the Extend page, or with Drush:
drush en solo_copy_blocksInstall the Solo theme too, but do not set it as the default. The module copies from the current default theme, so keep your old theme as the default during the copy.
- Open "Copy Blocks to Solo Theme" under Configuration > System, or go to
/admin/config/system/solo-copy-blocks. Read the warning text, then click "Copy Blocks".
Limitation: the form has no undo. Export your configuration or back up the database before you click "Copy Blocks".
Requirements
- Drupal ^10.1 || ^11 || ^12
- Solo theme, installed. The target theme is fixed to the machine name
solo. If it or the default theme is not installed, the run stops. - The "administer themes" permission
Solo itself needs Drupal ^11.3 || ^12. On Drupal 10 the module installs, but Solo cannot be installed, so there is nothing to copy to.
Support and maintenance
Questions, ideas, and bug reports are welcome. Please use this project’s issue queue so discussions and solutions remain available to the Drupal community.
Maintainers monitor issues, but response times depend on availability.
Developed and maintained by Alaa Haddad of Flash Web Center, LLC.
AI disclosure: AI tools assisted with drafting and reviewing this project description. The maintainer verified the final content against the project source.
Ask your assistant about Solo Copy Blocks
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.