Skip to main content
3 of 4
Removed Drupal version tag from title
leymannx
  • 18.8k
  • 6
  • 72
  • 126

How can I copy blocks placement and settings between themes?

Following is available for D7 but not for D8:

Tried following piece of code:

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

How to copy blocks placement and settings between themes?