Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #275454

    Carmine M
    Participant

    Team I’m dying here trying to search for this answer. I couldn’t find it anywhere on the web. That just seems strange to me.

    Please go to this page to see a visual of what I need…
    http://eart.wpengine.com/edit-meta/

    In the Breadcrumb how to change “The Shop” to something else. I’m thinking “The Collection” would work.
    Change “Categories” to “Collection(s)”. See the need for plural?
    Change “Tag” to “medium” or “method”.

    If you can help I imagine the solution would allow me to change these to whatever I want once it’s in place.

    I do appreciate it.

    With Best Regards,

    -Carmine

    #275507

    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    This is quite a technical coding and we could not guarantee that this could be done however we’d give it a try.

    Would you mind sharing us your admin credentials, FTP and the concern link for the texts.

    Don’t forget to set it as private reply.

    Thanks.

    #275566

    Carmine M
    Participant

    Team,
    Thanks for the reply. If this is a technical challenge I would like to put it on hold for a bit and see how the client reacts to what it is now as the default. Imagine if you change something and the client wants it to be another word?

    stand by.

    #275611

    Rue Nel
    Moderator

    Hello There,

    To change the “The Shop” term, please go to your customizer, Appearance > Customize > Integrity > Shop Options > Shop Title.

    The “Tags” and “Categories” is part of the Woocommerce template. You can change them by translating Woocommerce using the woocommerce.pot. As an alternative, you can use the code below to change each of them. Please make sure that you have a child theme. You can insert the code below into your child theme’s functions.php

    add_filter('gettext', 'translate_category' );
    add_filter('gettext', 'translate_categories' );
    add_filter('gettext', 'translate_tag' );
    add_filter('gettext', 'translate_tags' );
    
    function translate_category($translated) { 
      $translated = str_ireplace('Category', 'Collection', $translated);
      return $translated; 
    }
    
    function translate_categories($translated) { 
      $translated = str_ireplace('Categories', 'Collections', $translated);
      return $translated; 
    }
    
    function translate_tag($translated) { 
      $translated = str_ireplace('Tag', 'Method', $translated);
      return $translated; 
    }
    
    function translate_tags($translated) { 
      $translated = str_ireplace('Tags', 'Method', $translated);
      return $translated; 
    }

    Please let us know if this works out for you.

    #276300

    Carmine M
    Participant
    This reply has been marked as private.
    #276500

    Friech
    Moderator

    Hi There,

    Have you tried using a translation plugin like WPML? Please follow the solution provide here https://theme.co/x/member/forums/topic/how-to-translate-the-ive-read-and-accept-the-terms-conditions-to-spanish/#post-153972

    Hope it helps, Cheers!

    #280823

    Carmine M
    Participant

    I have not tried a translation plugin. This is becoming more effort than it’s worth. I appreaciate all your assistance. I’m generally happy with the results I have.

    Still, I’m concerned that the edits I made to these files…

    wp-content/plugins/woocommerce/templates/single-product/meta.php
    wp-content/plugins/woocommerce/templates/single-product/short-description.php

    …will get overwritten by an update. Will this happen? If yes, can you help me understand how to protect these files?

    With Best Regards,

    -Carmine

    #280927

    Rad
    Moderator

    Hi there,

    Yes it will be overwritten by woocommerce update and not by X update. What you could do is install a child theme (https://community.theme.co//kb/how-to-setup-child-themes/)

    Let say your child theme is /x-child/, then copy your woocommerce templates ( plugins/woocommerce/templates/single-product/meta.php and plugins/woocommerce/templates/single-product/short-description.php ) to /wp-content/themes/x-child/woocommerce/

    eg.

    /wp-content/themes/x-child/woocommerce/single-product/meta.php
    /wp-content/themes/x-child/woocommerce/single-product/short-description.php

    Hope this helps.

    #295733

    Carmine M
    Participant
    This reply has been marked as private.
    #296488

    Paul R
    Moderator

    Hi Carmine,

    Please copy the file into wp-content/themes/x-child/woocommerce/single-product/meta.php
    instead of wp-content/themes/x-child/woocommerce/templates/single-product/meta.php

    Hope that helps.

    #296714

    Carmine M
    Participant

    Thanks team.
    oddly, when I did this ‘related products’ started to show on single product. I added a remove function.

    #296979

    Carmine M
    Participant

    team,
    Just one more thing.

    So I made edits to my child functions.php…
    function translate_tag($translated) {
    $translated = str_ireplace(‘Tag’, ‘Method’, $translated);
    return $translated;
    }

    function translate_tags($translated) {
    $translated = str_ireplace(‘Tags’, ‘Methods’, $translated);
    return $translated;
    }

    Which is working great but an Archive now displays like this…
    http://edgartownartgallery.com/product-tag/oil-on-canvas/

    Method Archive

    Below you’ll find a list of all items that have been Methodged as“oil on canvas”

    …I looked high and low and I think I got close in the _landmark file but couldn’t find a way to edit what’s happening here.

    My client would like to the word “Archive” to be removed or another word and as you can see “Methodged” isn’t working. I’ll probably just want to change the sentence to only be text with no ‘ged’ attached to anything.

    Can you please tell me where this file is located?

    With Best Regards,

    -Carmine

    #297492

    Paul R
    Moderator

    Hi Carmine,

    You can change your archive title under categories > edit category

    Please see screenshot

    http://screencast.com/t/P9xQsb5cZE

    Hope that helps.

    #299075

    Carmine M
    Participant

    awesome fix. Thanks

    #299600

    Lely
    Moderator

    You’re welcome.