Create custom category in Elementor

Elementor has own categories that you can add your custom Elementor widget to them. But sometimes you need to create your own category. To do this add below code to your “functions.php” file or in your plugin file.

function hs_elementor_widget_categories( $elements_manager ) {

	$elements_manager->add_category(
		'honarsystems',
		[
			'title' => esc_html__( 'Honar Systems', 'text-domain' ),
			'icon' => 'fa fa-plug',
		]
	);

}
add_action( 'elementor/elements/categories_registered', 'hs_elementor_widget_categories' );
Shopping Cart