You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class SLM_Woo_Account{
public static $endpoint = 'my-licenses';
public function _construct(){
// Actions used to insert a new endpoint in the WordPress.
add_action('init', array($this, 'add_endpoints'));
add_filter('query_vars', array($this, 'add_query_vars'), 0);
// Change the My Accout page title.
add_filter('the_title', array($this, 'endpoint_title'));
// Insering your new tab/page into the My Account page.
add_filter('woocommerce_account_menu_items', array($this, 'slm_woo_menu_list'));
add_action('woocommerce_account' . self::$endpoint . '_endpoint', array($this, 'endpoint_content'));
}
Please check the parts of "data-title" attributes.
KIng Regards
KAZUKI
The text was updated successfully, but these errors were encountered:
k-kikuchi-waverworks
changed the title
On License management page(for WooCommerce), the heading text in <th> is not displayed properly on SP.
On License management page(for WooCommerce), table heading datas are not displayed properly on SP.
Sep 1, 2020
Hello
Thank you for providing this good plugin, so that my business was much better.
On License management page (for WooCommerce), table heading datas are not displayed properly on SP.
WooCommerce display these heading datas for using following css on for small device.
.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { content: attr(data-title) ": "; font-weight: 700; float: left; }
//https://github.com/michelve/software-license-manager/blob/master/woocommerce/includes/wc_licenses_class.php
However, your code doesn't have "data-title" attribute for tag so that table heading datas are not displayed on SP.
This file should be like this.
`/**
*/
Class SLM_Woo_Account{
public static $endpoint = 'my-licenses';
public function _construct(){
// Actions used to insert a new endpoint in the WordPress.
add_action('init', array($this, 'add_endpoints'));
add_filter('query_vars', array($this, 'add_query_vars'), 0);
// Change the My Accout page title.
add_filter('the_title', array($this, 'endpoint_title'));
// Insering your new tab/page into the My Account page.
add_filter('woocommerce_account_menu_items', array($this, 'slm_woo_menu_list'));
add_action('woocommerce_account' . self::$endpoint . '_endpoint', array($this, 'endpoint_content'));
}
}
/**
*/
public static function install(){
flush_rewrite_rules();
}
}
new SLM_Woo_Account();
// Flush rewrite rules on plugin activation.
register_activation_hook(FILE, array('Doc', 'install'));
`
Please check the parts of "data-title" attributes.
KIng Regards
KAZUKI
The text was updated successfully, but these errors were encountered: