Remove "featured" categoties

eelninio
5 Posts
eelninio posted this 2 weeks ago
Ask a Question

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
Vote to pay developers attention to this features or issue.
5 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 2 weeks ago

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

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
eelninio
5 Posts
eelninio posted this 2 weeks ago

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.
Support Team
Support Team posted this 2 weeks ago

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

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
eelninio
5 Posts
eelninio posted this 2 weeks ago

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

Support Team
Support Team posted this 2 weeks ago

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

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
You must log in or register to leave comments