Git Product home page Git Product logo

Comments (3)

lots0logs avatar lots0logs commented on August 13, 2024

All modules (parent & children) are wrapped intentionally. We're going to do the same for official modules in the future as well. Let me know if you have any further questions about this.

from create-divi-extension.

odoremieux avatar odoremieux commented on August 13, 2024

Do you have some documentation about
$this->wrapper_settings['attrs']['class']
This would be usefull to setup a class in child wrapper elements.

from create-divi-extension.

lots0logs avatar lots0logs commented on August 13, 2024

Its possible to use filters to customize that but I'd actually recommend putting your classes on the elements you have direct control over. Its much easier and straightforward that way. That being said, here's the details on those filters:

/**
 * Filters the HTML attributes for the module's outer wrapper. The dynamic portion of the
 * filter name, '$slug', corresponds to the module's slug.
 *
 * @since 3.1
 *
 * @param string[]           $outer_wrapper_attrs
 * @param ET_Builder_Element $module_instance
 */
$outer_wrapper_attrs = apply_filters( "et_builder_module_{$slug}_outer_wrapper_attrs", $outer_wrapper_attrs, $this );

/**
 * Filters the HTML attributes for the module's inner wrapper. The dynamic portion of the
 * filter name, '$slug', corresponds to the module's slug.
 *
 * @since 3.1
 *
 * @param string[]           $inner_wrapper_attrs
 * @param ET_Builder_Element $module_instance
 */
$inner_wrapper_attrs = apply_filters( "et_builder_module_{$slug}_inner_wrapper_attrs", $inner_wrapper_attrs, $this );

from create-divi-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.