PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Use singular form instead of plural form for sidebar

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there

We use a shortcode to show the filter fields in the sidebar.

It always uses plural form of the filter name, instead of the singular name. Or in other words we always have a leading"Product" before the filter.
For example"Product Size" instead of"Size". Can we filter that through functions.php?
Or can we make sure, it is using the singular name?

Tanks for your help!

 

Hello

Read this please – https://wordpress.org/support/topic/woocommerce-3-0-prepending-product-to-filters/

Thanks. But I don't want to set it manually for all of them. Also we are using WPML.

SO"In the WOOF case you can simply rename them as you want in the plguin settings to avoid default names:" is no option for us.

Can we set it in functions.php or so?

7 years ago someone wrote:

The problem comes from line 287 of the file includes/class-wc-breadcrumbs.php

Is there any chance to change this
from
$this->add_crumb( $taxonomy->labels->name );
to
$this->add_crumb( $taxonomy->labels->singular_name );

in a child theme functions.php file?

what about that?

Hello

But it doesn't depend on my plugin. In this case you better write to woocommerce support

Sorry I'd better read what he wrote. Of course class-wp-breadcrumbs.php is not related to your plugin and not related to our issue. I a m so sorry :)

But our issue still exists. We would like to use the singular version in the sidebar without changing it in your plugin settings.
How can we achieve that?

Also one reason is that we are using WPML. We already translated all singular versions and now only need to display them.

Is there a hook or a function for functions.php that we can use?

Thanks Tobias

Hello Tobias

My plugin uses the default woocommerce function to display the titles.  Which title is displayed depends only on woocommerce. It doesn't depend on my plugin

From my side I can only suggest to use a custom taxonomy label - https://share.pluginus.net/image/i20240903105553.png - Then the display of the title will depend on my plugin

If you don't want to change the titles in the plugin settings, you can use this hook - https://products-filter.com/woof_filter_title