• Resolved itsmefti

    (@itsmefti)


    hi!

    I’m looking to change the default ‘featured’ text, i.e to ‘hot’ or something else.

    There used to be an option in WC dashboard, but I fear that was dependent on the theme.

    Would it be best to change this text in the WC files or theme files?

    many thanks in advance for your help and support!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I understand you’d like to change the default “Featured” text to something else, such as “Hot.”

    By default, WooCommerce doesn’t provide an option in the dashboard to change this text. Instead, the “Featured” label is typically added by the theme you are using. It’s best to first check your theme settings or contact your theme support to see if they provide an option to customize this label.

    If there’s no such option, you can customize the text using a translation plugin like Loco Translate, which allows you to override default strings in WooCommerce or your theme. For more details you can use this article.
    https://woocommerce.com/document/woocommerce-localization/#creating-custom-translations

    I hope this helps

    Thread Starter itsmefti

    (@itsmefti)

    Thanks for getting back to me !

    Aha, the theme support also suggested this – but isn’t this a translator plugin?

    I simply need to change that one word on labels? Surely amended a tiny bit of code in the theme files would be better, simpler, less bloaty? Also I only want to change the ‘featured’ product labels, would the translation plugin not change ALL instances of the word ‘featured’ throughout the whole site?

    Thanks again

    Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @itsmefti,

    I understand that you’d like to change the default “Featured” text, such as on product labels, to something like “Hot.” You’ve also raised a great point about ensuring the change is limited to just the featured product labels.

    To provide the best guidance, could you please share a link to your website and a screenshot of the specific “Featured” text you’re referring to? This will help me understand exactly where the text appears and whether it’s theme-dependent or tied to WooCommerce settings.

    Once I have more details, I’ll be happy to advise on the simplest and most effective way to make this change! Let me know if you have any questions in the meantime.

    Thread Starter itsmefti

    (@itsmefti)

    Hi,

    Sorry for the delay.

    Please see image in this link: https://imgur.com/a/mMdWw1o

    The front end label “featured”

    The backend WC products dashboard where we can select featured.

    Thanks for your help and support.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @itsmefti,

    If you want to modify the text that says “Featured” across the site, you can do this by editing the theme’s language or using a plugin like Loco Translate as previously mentioned. Go to Loco Translate > Plugins > WooCommerce, find the string “Featured,” and change it to whatever you’d like. Alternatively, if you’re comfortable with custom code, you can add a filter to change the featured label text. Here’s an example:

    add_filter('woocommerce_featured_product', 'custom_featured_text');
     
    function custom_featured_text($text) {
        return 'Your Custom Text'; // Replace with your desired text
    }
    

    You can add this code to your theme’s functions.php file or use a custom code snippet plugin. Let me know if you need further assistance!

    Thread Starter itsmefti

    (@itsmefti)

    Thanks!

    I’ve added :

    add_filter(‘woocommerce_featured_product’, ‘custom_featured_text’);

    function custom_featured_text($text) {
    return ‘FREE DELIVERY’; //
    }

    Will I need to clear and refresh cache to see this in action.

    Really appreciate your help!

    Thread Starter itsmefti

    (@itsmefti)

    hi!

    the above snippet was added to functions.

    caches cleared etc. however the featured product label still shows “featured” as opposed to “Free delivery”.

    have I made a boober somewhere? Should it be lowercase?

    thanks again for your help and support

    much appreciated! ??

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @itsmefti,

    If the code doesn’t work, it’s possible that your theme has overridden this feature, as some themes come with their own way of displaying the featured and sales labels. In this case, you may need someone to review your site setup and try different methods, either by using filters like the one above or by applying CSS to hide the default featured text and display custom text in its place.

    While these methods should work, providing further assistance regarding this level of customization is outside the scope of this forum. I recommend hiring a professional to handle this for you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.