elegantthemes / create-divi-extension

MIT License
185 stars 58 forks source link

Question re: custom Accordion/Accordion Item module #157

Open sburleigh opened 6 years ago

sburleigh commented 6 years ago

Problem Description

I need to customize AccordionItem.php (ex. create AccordionItem-Custom.php) so that I can use inline styling in the title field (make certain words italic and others not). Do I also need to create an Accordion-Custom.php, so that when I "Add New Item" in Accordion-Custom, it ues AccordionItem-Custom?

Steps To Reproduce

N/A

Screenshot and/or gif

N/A

xxtesaxx commented 6 years ago

Yes, you would need to copy the parent module as well. Make sure to change the slugs as each module slug has to be unique

sburleigh commented 6 years ago

Thank you! Do I need to do anything with the CSS class references in the PHP? Or just make sure to match all the slugs between parent and child module accordingly?