About this plugin
Have you ever wanted to alter the way Elementor renders one of its widgets on your website?
Fundamento provides an easier way to achieve this by allowing you to inject extra CSS classes into Elementor’s widgets.
Usage
php file:
-
Add an action to initialize Fundamento, then add a call to Fundamento’s register_skin() function:
php')) { function fundamento_init() { // create a new Fundamento instance $f = \Fundamento\Plugin::instance();
// register a new skin $f->register_skin([ 'name' => 'Red', // The name of your new skin, as it will appear in Elementor 'element' => 'button', // The elementor element you are skinning 'is_default' => true, // optional - should this skin be set by default on all elements of this type 'css' => get_stylesheet_directory_uri(). css', // optional - have Fundamento enqueue an extra css file 'js' => get_stylesheet_directory_uri().
js', // optional - have Fundamento enqueue an extra js file ]); } add_action('elementor/init', 'fundamento_init'); }
-
Add the selector to your css file:
skin-button-red { background: #f00; }
php file:
-
Add an action to initialize Fundamento, then add a call to Fundamento’s register_padding() function:
php')) { function fundamento_init() { // create a new Fundamento instance $f = \Fundamento\Plugin::instance();
// register a new skin $f->register_padding([ 'name' => 'Standard', // The name of your padding preset, as it will appear in Elementor 'element' => 'section', // The elementor element you are skinning 'padding' => '30px', // The value and unit of the amount of padding this preset should apply 'is_default' => true, // optional - should this skin be set by default on all elements of this type ]); } add_action('elementor/init', 'fundamento_init'); }