-
AuthorPosts
-
May 17, 2015 at 9:07 am #275454
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
May 17, 2015 at 1:41 pm #275507Hi 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.
May 17, 2015 at 4:43 pm #275566Team,
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.
May 17, 2015 at 7:24 pm #275611Hello 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.
May 18, 2015 at 2:44 pm #276300This reply has been marked as private.May 18, 2015 at 8:42 pm #276500Hi 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!
May 24, 2015 at 3:10 pm #280823I 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
May 24, 2015 at 7:49 pm #280927Hi 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.
June 8, 2015 at 7:25 am #295733This reply has been marked as private.June 8, 2015 at 11:22 pm #296488Hi 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.phpHope that helps.
June 9, 2015 at 5:45 am #296714Thanks team.
oddly, when I did this ‘related products’ started to show on single product. I added a remove function.June 9, 2015 at 10:11 am #296979team,
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
June 9, 2015 at 8:29 pm #297492Hi Carmine,
You can change your archive title under categories > edit category
Please see screenshot
http://screencast.com/t/P9xQsb5cZE
Hope that helps.
June 11, 2015 at 9:26 am #299075awesome fix. Thanks
June 11, 2015 at 10:50 pm #299600You’re welcome.
-
AuthorPosts