elegantthemes / create-divi-extension

MIT License
186 stars 59 forks source link

Is there any way to have design changes for just a single element? #401

Open kelleymuro opened 4 years ago

kelleymuro commented 4 years ago

Problem Description

I have a checkout form extension and there is all sorts of different elements, first name, last name, email address, products/product variations.

I want to be able to customize my products/product variations element (borders, font size, color etc.) and I've added the style editor in the design tab but it shows up on all the elements and I would like to just have "product style editor" for the elements products/product variations. Is there anyway to assign the design changes to a certain element?

This shows up for every element and I want it to show just inside the product elements image

See elements here. And I just want "Product style editor" to show up in the "Product" element.: image

lanresmith commented 3 years ago

Hi @kelleymuro please be sure to define the fields on the child module & not the parent. You can kindly check the Slider (includes/builder/module/SliderItem.php) & the SliderItem (includes/builder/module/SliderItem.php) modules in the Divi folder for ideas.