color control<\/a>. The background control is handier when using a background image or video on top of the color.<\/p>\n\n\n\nclass Prefix_Element_Background extends \\Bricks\\Element {\n \/\/ Required for background video\n public $scripts = ['bricksBackgroundVideoInit'];\n\n \/\/ Set builder controls\n public function set_controls() {\n $this->controls['exampleBackground'] = [ \/\/ Setting key\n 'tab' => 'content',\n 'label' => esc_html__( 'Background', 'bricks' ),\n 'type' => 'background',\n 'css' => [\n [\n 'property' => 'background',\n 'selector' => '.prefix-background-wrapper',\n ],\n ],\n 'exclude' => [\n \/\/ 'color',\n \/\/ 'image',\n \/\/ 'parallax',\n \/\/ 'attachment',\n \/\/ 'position',\n \/\/ 'positionX',\n \/\/ 'positionY',\n \/\/ 'repeat',\n \/\/ 'size',\n \/\/ 'custom',\n \/\/ 'videoUrl',\n \/\/ 'videoScale',\n ],\n 'inline' => true,\n 'small' => true,\n 'default' => [\n 'color' => [\n 'rgb' => 'rgba(255, 255, 255, .5)',\n 'hex' => '#ffffff',\n ],\n ],\n ];\n }\n\n \/\/ Render element HTML\n public function render() {\n echo '<div class=\"prefix-background-wrapper\">';\n\n \/\/ Background video\n echo BricksFrontend::get_element_background_video_wrapper( \n ['settings' => $settings], \n 'exampleBackground' \/\/ Setting key\n );\n\n echo get_bloginfo( 'name' );\n\n echo '<\/div>';\n }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"The background control lets you set the following background properties: Background color Background image Background video (requires bricksBackgroundVideoInit script. See code example below) There are various settings for the background image and video. You can exclude color\/image\/video settings via the exclude parameter. As the background control serves most likely as a CSS setting the following […]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":188,"template":"","format":"standard","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article\/241"}],"collection":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article"}],"about":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/types\/bricks_article"}],"author":[{"embeddable":true,"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article\/241\/revisions"}],"wp:attachment":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/media?parent=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}