WPSHARE247 Elementor Addons
Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7, Vertical Mega Menu. Liên hệ – Contact Us Professional website design – Thiết kế website
Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7, Vertical Mega Menu.
Liên hệ – Contact Us
Professional website design – Thiết kế website chuyên nghiệp: tbay.vn Web design – Thiết kế web trọn gói: website366.com Sample Website – Thiết kế web giá rẻ: waoweb.vn Wordpress Share – Học wordpress: wpshare247.com Web Content – Viết bài chăm sóc web: vietbaigiare.com
Cách dùng filter thêm Custom Widget – How to use custom Widget 1. Copy folder wpshare247-custom-widgets from the plugin path: wpshare247-elementor-addons/your-custom-sample/wpshare247-custom-widgets into your current theme folder, like: wp-content/themes/your-theme/wpshare247-custom-widgets
- 01Inside that folder, you will find wpshare247_my_custom.php . This is a sample widget file. You can use it directly, or duplicate and create more widget files.
- 02In your theme’s functions.php , add the following code to register custom widgets: `php add_filter( ‘wpshare247_el_addons_custom_widgets’, function( $widgets ) { $widgets[] = [ ‘file’ => get_stylesheet_directory() . ‘/wpshare247-custom-widgets/wpshare247_my_custom.php’, ‘class’ => ‘Wpshare247_My_Custom’, ]; /* // Example: Add more widgets if needed $widgets[] = [ ‘file’ => get_stylesheet_directory() . ‘/wpshare247-custom-widgets/wpshare247_my_custom_new1.php’, ‘class’ => ‘Wpshare247_My_Custom_New1’, ]; */ return $widgets; });