Posted: January 25, 2018 at 5:01 am
|
https://eventespresso.com/topic/critical-pages-showing-only-shortcode/ I would like to modify the text of critical pages, but I can see only those short codes. I found this discussion, I haven’t manage to solve the problem yet. Do you have some other advise to do it? |
Hi there, The EE4 critical pages are dynamically generated for each registration, so they need to be shortcodes. Can you provide details on what it is you want to change? There may be another option but we need to know the specific changes you want to make. |
|
|
Hi, The other change is that in Registration check out pages, in the bottom corner is link cancel registration, I would like to translate that text in Finnish, because language package didn’t translated it automatically. |
We have a filter available to edit that text, see an example here: https://gist.github.com/joshfeck/9e50f1757bf0533c95917a69e758af4b Any content you return there will be used in place of the original text and you can add the function to a Custom Functions Plugin on your site to make the change.
Currently, the translation for that string is awaiting approval. The current translation is:
The If you prefer to do it yourself in a local file you can follow the guide here: https://eventespresso.com/wiki/how-to-translate-event-espresso/
|
|
|
Hi |
Thanks, I’ve approved that string. If you have any further questions just let us know. |
|
|
I didn’t manage to get that custom plug in work. Too complicate for me, I am just amateur web user. When I bought this program, I thought I will get ready and easy to use program. But for example this need just edit the text is meant to professional webpages coder, not for conventional users. Isn’t there any easier way to edit text? |
It depends on the text you want to edit, as mentioned above, the output you are referring to is dynamic, so we can’t just output the text to a page for you to edit within the admin. If you post the exact text you want to include I can put the function together for you. |
|
|
That’s great. I think my biggest problem is that I don’t have program to do that php-file in right format, and that’s why I don’t get the plug in work. The text what I want to see in that yellow box is the current text: “Ilmoittautumisesi on käsitelty onnistuneesti. |
You can use this function: https://gist.github.com/Pebblo/f4a152a8015ee1d962cd894d725349b9 Add that to a Custom Functions Plugin on your site and you should be good to go. |
|
The support post ‘Critical pages showing shortcode only’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.