Home › Forums › Calendar Products › Events Calendar PRO › Change Link lable
- This topic has 6 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 29, 2016 at 9:51 pm #1083730
Johan
ParticipantHello, on my events list page (in swedish) a llik says Mer information »
I want to change this to Läs mer. How do I do that?-
This topic was modified 10 years, 1 month ago by
Johan.
March 1, 2016 at 4:54 pm #1084112Brian
MemberHi,
Thanks for using our plugins. I can help out here.
We have this guide to changing words to anything you like:
https://theeventscalendar.com/knowledgebase/changing-the-word-events-to-something-else/
You would want to change the English string:
Find out more
Let me know if you have any follow up questions.
Thanks
March 2, 2016 at 12:30 pm #1084535Johan
ParticipantHello I think you may have linked to the wrong page. But no worries I found the right one. (The one you linked to only changes the word Event i think?)
So I changed Find out more to Läs mer but there is an » after the link that I want to ger rid of, How do I do that?
March 2, 2016 at 2:15 pm #1084561Brian
MemberYeah I meant to link to this one:
Sorry about that.
If you want to remove the double right arrows you have to change the template following our themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
Following that you want to move this tempalte:
plugins/the-events-calendar/src/views/list/single-event.php
to your theme:
yourtheme/tribe-events/list/single-event.php
Then you will want to delete this:
»March 3, 2016 at 3:41 am #1084754Johan
ParticipantHi there. I added this code and it worked – it changed my word.
But after that Events Calendar change Language compleatly from Swedish to English in the admin and everywhere
How do I prevent that?/* * EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR * See the codex to learn more about WP text domains: * http://codex.wordpress.org/Translating_WordPress#Localization_Technology * Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'... */ function tribe_custom_theme_text ( $translations, $text, $domain ) { // Put your custom text here in a key => value pair // Example: 'Text you want to change' => 'This is what it will be changed to' // The text you want to change is the key, and it is case-sensitive // The text you want to change it to is the value // You can freely add or remove key => values, but make sure to separate them with a comma // This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events" $custom_text = array( 'Find out more' => 'Läs mer', ); // If this text domain starts with "tribe-" or "the-events-", and we have replacement text if((strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0) && array_key_exists($text, $custom_text) ) { $text = $custom_text[$text]; } return $text; } add_filter('gettext', 'tribe_custom_theme_text', 20, 3);March 4, 2016 at 4:43 am #1085179Brian
MemberHi,
I am not sure why it would be that way.
If so I would just edit the text directly in this template where you edited the right arrows?:
yourtheme/tribe-events/list/single-event.php
Does that work for this time at least?
March 19, 2016 at 9:35 am #1091382Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This topic was modified 10 years, 1 month ago by
-
AuthorPosts
- The topic ‘Change Link lable’ is closed to new replies.
