Oz Web Services
  • Home
  • WP
  • PHP
  • JS
  • CSS
  • SCSS
  • HTML
  • XML
  • JSON
  • SQL
  • .htaccess
  • Apache
  • Nginx
  • INI
  • HTTP
  • Diff
Search shortcode

Builder: Add Classes to Modules

May 13, 2014
/**
 * Add classes to Builder modules
 *
 * Function name calling shouldn't be 'it_builder_loaded'
 * in case parent theme is using it already.
 */
if ( ! function_exists( 'oz_builder_loaded' ) ) {
function oz_builder_loaded() {
	// -->                          module        label                           class
	builder_register_module_style( 'content',    'Blue ',                        'content-blue' );
	builder_register_module_style( 'widget-bar', 'Blue (full width)',            'widget-bar-blue' );
	builder_register_module_style( 'navigation', 'Subnav Blue',                  'subnav-blue' );
	builder_register_module_style( 'html',       'Blue Background',              'html-blue' );
	builder_register_module_style( 'image',      'Blue Background (full width)', 'image-blue');
	builder_register_module_style( 'header',     'White Header',                 'header-white');
	builder_register_module_style( 'footer',     'White Footer',                 'footer-white');
}
add_action( 'it_libraries_loaded', 'oz_builder_loaded' );
}
Oz Web Services
Copyright © 2015-2025 All Rights Reserved