Tagged: x
-
AuthorPosts
-
June 26, 2016 at 5:20 am #1059925
GeorgDickParticipantHello,
my name is Georg Dick. I am using x Theme on my website phaenomen.net.
How can I translate these texts without changing the function.php?Thank you for your answer.
Kind regards.
Georg Dick
June 26, 2016 at 5:51 am #1059965
ChristopherModeratorHi there,
Thanks for writing in!
If you’re referring sharing options in portfolio page, you need to translate strings in x.pot file, to do so follow this link https://community.theme.co/kb/translation
If you’re referring to social sharing shortcodes, this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Please add this in child theme’s functions.php file :
add_filter('gettext', 'translate_text', 20 ); function translate_text($translated) { $translated = str_ireplace('Share on Facebook', 'Your new text 1', $translated); $translated = str_ireplace('Share on Twitter', 'Your new text 2', $translated); $translated = str_ireplace('Share on Google+', 'Your new text 3', $translated); $translated = str_ireplace('Share on LinkedIn', 'Your new text 4', $translated); $translated = str_ireplace('Share via Email', 'Your new text 5', $translated); return $translated; }Hope it helps.
June 28, 2016 at 7:56 am #1063138
GeorgDickParticipantThis reply has been marked as private.June 28, 2016 at 8:18 am #1063167
ChristopherModeratorHi there,
#1 No, it’s not possible.
#2 Sorry, no it breaks your site.
Thanks.
July 1, 2016 at 12:33 pm #1068623
GeorgDickParticipantThis reply has been marked as private.July 1, 2016 at 12:36 pm #1068626
GeorgDickParticipantThis reply has been marked as private.July 1, 2016 at 5:21 pm #1068917
FriechModeratorJuly 4, 2016 at 6:14 am #1071327
GeorgDickParticipantThank you.
The screenshot you mention is to find within cornerstone? But I don’t use cornerstorne. I work in the text modus.
What to do? Thank you for your guidance.
Georg DickJuly 4, 2016 at 7:09 am #1071384
Paul RModeratorHi,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
July 4, 2016 at 8:46 am #1071534
GeorgDickParticipantThis reply has been marked as private.July 4, 2016 at 9:39 am #1071592
JoaoModeratorGreat to hear it Georg.
Let us know if you need help with anything else.
Joao
July 6, 2016 at 5:16 am #1074479
GeorgDickParticipantThank you Joao. I think we can close the ticket for now.
July 6, 2016 at 6:20 am #1074564
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1059925 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

