Hi @marleness,
You can change the text value by adding following code to your child theme’s functions.php file
add_filter('event_manager_get_listings_custom_filter_text','theme_slug_custom_text_get_listing_result',10,2);
function theme_slug_custom_text_get_listing_result($message, $search_values){
//change your $message value here
return $message;
}
– Date and time text you can change by overriding the template file called “content-single-event_listing.php” to your theme side (https://wp-eventmanager.com/template-files-override/)
– Registration button text you can change by overriding template file called “event-registration.php” to your theme side.
I hope this helps.
Thank you
Hi @hiteshmakvana
Thanks a lot.
It is really strange, I can´t find the text “Udgivet af på 16. februar 2020″ in the file you mention “content-single-event_listing.php”. I have translated it myself, but now I can´t find it anymore.
Could it be placed in another file?
Thanks,
Marlene
Hi @marleness,
You can not find a translated string using PO or MO files. You can find the English string from the template file.
Thank you
Hi @hiteshmakvana
I am aware of that, but I still can´t find any text regarding this in the original “content-single-event_listing.php” file.
Could it be placed somewhere else?
Best,
Marlene
Hi @marleness,
That text is not part of our plugin. It is generated from theme’s single.php file template. Please check for theme settings or change the single template file from your child theme.
Thank you
Hello, I have a quetion that could be related to this one. I want the button to register for the event to behave differently, not to show a URL or email, but just act as a hyperkink and directly go to the URL once you press the button.
After reading this topic, I understand I need to edit the event-registration.php file, but how exactly?
Thank you very much
-
This reply was modified 6 years, 2 months ago by
amigoswgr.
Hi @hiteshmakvana
I have added this to my functions.php and changed the text “//change your $message value here” but I can´t see any changes on my site. Do you know why?
add_filter(‘event_manager_get_listings_custom_filter_text’,’theme_slug_custom_text_get_listing_result’,10,2);
function theme_slug_custom_text_get_listing_result($message, $search_values){
//change your $message value here
return $message;
}
Best,
Marlene