Hello!
Can I somehow remove the "featured" tab on the product page from the category filter?
Cms: wordpress
plugin: woocommerce
Hello!
Can I somehow remove the "featured" tab on the product page from the category filter?
Cms: wordpress
plugin: woocommerce
Hi,
This category is added by WooCommerce by default. Unfortunately, there is no way to remove it using Nicepage.
Let us know if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
Could you please tell me if it can be edited in the php file? If it is possible, where to find it? Thanks for your help.
Could you please tell me if it can be edited in the php file? If it is possible, where to find it? Thanks for your help.Hi,
You can search for it in the WooCommerce files in your site root, but please note that editing site files may cause incorrect website work. Please do it carefully.
You can also contact the WooCommerce support team.
...................................................
Sincerely,
Paul C.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
I find it.
If you need to rename “featured” or delete an item, you need to change/delete these lines in the theme files
path: functions.php
// add item featured
$featuredLink = class_exists('Woocommerce') ? add_query_arg('featured', 'true', get_permalink(wc_get_page_id('shop'))) : '';
$item = strtr($args['itemTemplate'], array('{categories_filters_content}' => __('Featured', 'simplypapper'), '{categories_filters_value}' => $featuredLink));
if (false !== strpos($_SERVER['REQUEST_URI'], 'featured=')) {
$item = strtr($item, array('<option' => '<option selected="selected"'));
}
$categories_filter_html .= $item;
I find it.
If you need to rename “featured” or delete an item, you need to change/delete these lines in the theme files
path: functions.php
// add item featured
$featuredLink = class_exists('Woocommerce') ? add_query_arg('featured', 'true', get_permalink(wc_get_page_id('shop'))) : '';
$item = strtr($args['itemTemplate'], array('{categories_filters_content}' => __('Featured', 'simplypapper'), '{categories_filters_value}' => $featuredLink));
if (false !== strpos($_SERVER['REQUEST_URI'], 'featured=')) {
$item = strtr($item, array('<option' => '<option selected="selected"'));
}
$categories_filter_html .= $item;
Last edited 2 weeks ago by eelninio
Hi,
Thanks for the provided information! We hope it will be helpful for users who want to do the same.
...................................................
Sincerely,
Paul C.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp