Create a custom category in Elementor

Elementor is a powerful page builder plugin for WordPress that allows users to customize their websites in a variety of ways. Elementor has its own categories on the page builder side so you can add your custom Elementor widget to them. But sometimes you need to create your own category. Creating a custom category in Elementor is easy and straightforward. To do this add the below code to your “functions.php” file or in your plugin file to create a custom category for your own in the Elementor page builder.

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