SOLVED: Component Export does not include classes

Hey guys. Major flaws in Components. You cannot copy/paste from one site to another in the same way you would with Elements.

Export / Import does not bring across any of the classes used on the component. So if the classes don’t already exist on the destination site, they are not created.

So basically Components are not transportable.

Hi @alanblair,

That’s true. As for now, components are not included in the copy-paste structure, and you need to export/import them separately. We do have an internal improvement task for this already, and I’ll link this forum topic to it, so that we will update it once we release the improvement.

That should work though. I’ve just tested, and classes that are used in a component are exported alongside the component and imported as well. Can you export one component with classes that is not working for you and paste it here so I can try to import it?

Thank you,
Matej

Hi @alanblair,

I’ve also replied via the ticket, but to also mention it here: Yes, classes that you define/select in properties are not exported, but the classes that you assign to the elements on the component itself are.

I’ve created an internal improvement task for this.

Thank you,
Matej

1 Like

We fixed this issue in Bricks 2.1 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production website. It is intended for testing in a local or staging environment only.

OOOhhh… Looks like some great work being done there. Looking forward to trying the new features.

HMM… I tried both Export/Import and Copy/Paste from one site to another, both have 2.1 beta. In both cases the classes connected to “Global Classes” properties do not get imported. On the destination site inspecting the property it just shows IDs for the class names.

Also,

  • Still no access to child component properties
  • Still no way to link properties to style inputs
  • Still no way to use properties in custom CSS

Here is a quick Loom showing what I’m experiencing.

Hi @alanblair,

thank you for testing and for the video. The reason why this topic was marked as “solved” is because there were two issues reported in the first post, so I’ve created two internal tickets:

  1. Ability to copy-paste components from one site to another, via right click. This is not working, but like you noticed, the classes are not exported if you do it this way. I’ll open internal bug report for this
  2. Export/Import does not bring over classes defined in the properties (on component). This is still WIP, and has not yet been implemented.

That is why it’s important to create multiple forum topics instead of one, if issues are different. :wink:

Anyway, thanks for noticing the issue with copy-paste, I’ve created a bug report and will be solved.

Thank you,
Matej

We fixed this issue in Bricks 2.1.3, now available as a one-click update in your WordPress Dashboard.

Please take your time to read the changelog entry before updating, and let us know if you continue to experience issues.

All issues should finally be resolved in Bricks 2.2 beta, which is now available in your account.
Changelog: Bricks 2.2-beta Changelog – Bricks

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment. The more feedback we get, the better :v: