Skip to main content

Woocommerce Category: prefix

Comments

7 comments

  • Permanently deleted user

    Hello Oliver,

    Thank you for getting in touch with us.

    Category archive pages are designed 100% by the designer. Every element in the page is added by the designer.

    If you see category prefix in your Product Archives template, it means someone added it manually. If you go to Brizy - Templates and edit your Product Archive template, you should be able to remove the prefix Category

    Best regards, Nelea.

    0
  • Riaan Oliver

    Hi Nelae,

    Thank you for your assistance.

    Where is the screenshot directly from the Brizy templated builder.

    As you can see I am caller the #ArchiveTitle to display the category name. There is no prefix of "Category:" 

     

    WP normal has this by default and can be removed using a WP function, but nothing is removing the "Category:" prefix

    This is my function to remove the category prefix in WP

    function prefix_category_title( $title ) {
    if ( is_category() ) {
    $title = single_cat_title( '', false );
    }
    return $title;
    }
    add_filter( 'get_the_archive_title', 'prefix_category_title' );

    Thank you for you help it's greatly appreciated.

    Kind regards,
    Riaan 

    0
  • Permanently deleted user

    Hi Oliver,

    Please try to change the theme that you are using, then please check if the issue still persists.

    Best regards, Nelea.

     

     

    0
  • Riaan Oliver

    Hi Nelea,

    I've switched from WooCommerce Storefront to Boutique themes but still have the same issue, please check below.

    Thank you very much for you assistance.

     

    0
  • Mihail Stremenovskii

    Hello Riaan!

    My name is Mihail, from Brizy support team.

    What if in place of Category title, you will show category description? Archive description: https://jmp.sh/tCIy1p0 Can be added to each category: https://jmp.sh/aWIZ25C

    This small trick can help you to avoid code customizations.

    Please try it.

    Let us know the results.

    Kind regards, Mihail

    0
  • Riaan Oliver

    Hey Mihail,

    Thank you for your response, however, the client is displaying the category description on the page for SEO reasons, so this workaround will not work for this client.

    Do you have any other suggestions?

    0
  • Mihail Stremenovskii

    Hello Riaan!

    I think you can add an additional Categorie field, using Advanced Custom Fields plugin: https://wordpress.org/plugins/advanced-custom-fields/

    https://jumpshare.com/v/u8vBydTXuZbsy3rMiAcE

    And Use this additional field, to show the wanted Title.

    I Hope this will be helpful for you.

    Kind regards, Mihail

    0

Please sign in to leave a comment.