Title: Is it possible to override Bricks custom elements (e.g. pricing-tables.php) via child theme?
Hi everyone,
I’m trying to figure out if it’s possible to override custom elements (for example pricing-tables.php
) via a child theme in Bricks.
Background:
I tried to copy the element file into my child theme and adjust the contents there. But of course, Bricks throws an error because the element is already registered.
If I change the class name (or any other identifiers that I assume I need to rename), the error goes away – but then the original styles (.pricing-table
etc.) are no longer applied, and I lose the default styling/logic from the parent element.
My questions:
– Is there a proper way to override an element in the child theme without duplicating everything under a new name?
– Or do I always have to create a completely new element with a new class/slug, and then manually re-apply the styles?
– Ideally I’d like to keep the original element styling and functionality, and just override the template/logic in certain parts.
Any hints or best practices for this?
Thanks!