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 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

  1. Inside 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.

  2. In 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;
    });

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录