Here is a snippet how you can add module backgrounds with the current options:
add_action( ‘gdymc_modulesettings’, function ( $module ) {
optionInput( ‘background’, array(
‘type’ => ‘select’,
‘options’ => array(
‘white’ => __( ‘White’, ‘Domain’ ),
‘bright’ => __( ‘Bright’, ‘Domain’ ),
‘dark’ => __( ‘Dark’, ‘Domain’ ),
‘highlight’ => __( ‘Highlight’, ‘Domain’ ),
),
‘default’ => ‘white’,
‘label’ => __( ‘Module background’, ‘Domain’ ),
), $module->id );
}, 5, 1 );
add_filter( ‘gdymc_module_class’, function( $classes ) {
$layout = optionGet( ‘background’ );
$classes[] = ‘background_’ . $layout;
return $classes;
} );
Place this in your themes functions.php to add this option to all GDYMC modules. This adds a class to the module container so you can set your background in your stylesheet like this:
.background_bright { background: url(https://www.toptal.com/designers/subtlepatterns/patterns/sports.png) repeat; }