Hướng dẫn activate theme JNews v2.1.1 mới nhất

Chào các bạn độc giả thân mến,

Hôm nay mình sẽ hướng dẫn các bạn cách activate theme JNews phiên bản mới nhất hiện tại là v2.1.1 để có thể import demo một cách dễ dàng.

Mặc định nếu bạn chưa activate thì chỉ import được cái demo mặc định mà thôi, bắt tay vào việc luôn nhé ?

Bước 1: Truy cập đường dẫn wp-content/themes/jnews/class/Util/ValidateLicense.php

Tìm

public function check_themes($token = null)
    {
        $token = $this->get_token($token);

        if ($token)
        {
            $result = $this->check_purchase_wordpress_themes($token);

            if ( $result )
            {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));

                return true;
            } else {
                update_option($this->optionname, array(
                    'validated' => false,
                    'token' => null,
                    'item' => null
                ));
                return false;
            }
        }

        return false;
    }

Thay bằng

public function check_themes($token = null)
    {
        $token = $this->get_token($token);

        if ($token)
        {
            $result = $this->check_purchase_wordpress_themes($token);

            if ( $result )
            {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));

                return true;
            } else {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));
                return true;
            }
        }

        return true;
    }

Lưu lại.

Bước 2: Quay lại trang activate theme JNews và điền license key là namlee.net để kích hoạt.

Bây giờ chỉ việc tận hưởng thành quả và tha hồ import demo nhé các bạn.

Chúc các bạn thành công.

Rate this post