IMPLEMENTED: Global Classes Import Options (e.g. overrides)

I have updated a template on a staging site and want to import it, including the updated styles/classes to the production site.

I have attempted this but the imported template didn’t bring with it the updated styles. I can see the styles in the exported json file but they’re not being applied. Maybe because the classes already exist on the target site?

EDIT - this could be a bug, but also might be user error on my end so posted in How To for now.

Thanks!

1 Like

Hi @mackarias,

This is a current limitation: if the imported classes already exist on the target site, they’ll be skipped during the import process. That said, we already have an internal task in our development log to address this. The goal is to provide more options for handling imported classes in the future, such as overriding existing ones or renaming the incoming classes.

I’ve updated the title of your report to better reflect this limitation.

In the meantime, the only workaround would be to delete the existing classes on the target site before re-importing the template. This will ensure the latest styles are applied, though I understand this is far from ideal.

2 Likes

OK no worries, appreciate the quick response. I can work around the issue for now :+1:

1 Like

Hi @mackarias ,

We’ve fixed this in Bricks 1.12 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are experiencing issues.

You can see the full changelog here: Bricks 1.12 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej

1 Like