I’m using the GeneratePress theme with GenerateBlocks, but reusable blocks lose their alignment settings after updates. How can I prevent this?

Hire Now!

Whether you’re looking to launch your brand, showcase your portfolio, or open an online store, we’re here to bring your ideas to life.

I’m using the GeneratePress theme with GenerateBlocks, but reusable blocks lose their alignment settings after updates. How can I prevent this?

  • Post Created: 2 months ago
  • Views: 0

Questioner:

Ongun Çakal

Answer

Reusable block alignment issues may arise from CSS changes during updates. To fix this, convert reusable blocks into block patterns by exporting them via the Block Editor > Reusable Blocks > Manage All Reusable Blocks. Then, re-import them as patterns for greater stability.

If alignment issues persist, add custom CSS targeting specific blocks using unique classes:

.custom-reusable-block {
    margin: auto;\n       text-align: center;\n   }

Test the site thoroughly after each update.

Discussion