Posted: August 14, 2019 at 5:00 pm
We require our users to be logged in to register for training in order to track certain things. On the checkout page the text that prompts users who are not logged in is not very noticeable. I want to style the text into a button and change the text entirely. I have seen your posts already on changing the text but the <p></p> has no id or class to manipulate with CSS. Do you have any suggestions on how to add an attribute to the paragraph to style it? |
|
Hi, With the way CSS works, you don’t need the e.g.
will change the text’s color to red. With regards to changing the text, you can make use of a translation function. Here’s a link to the wiki that includes an example of a translation function: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function What you can do is plug in the following string into the translation function’s array, followed by the text you want to change to. e.g.
|
|
Hi Josh,
|
|
Also, thank you for the suggestion in using the parent element I feel dumb for not thinking of that. It worked great and if I could just change the text to meet my need It’ll be perfect. |
|
Hi, This:
needs to be changed to:
If the above change doesn’t fix the issue, can you share a screenshot URL? |
|
Thank you for the quick response. I made the change and unfortunately there is still no effect. I have attached a link to the page in question below. You might have to add a training to your cart and try to check out if this link doesn’t take you direct. https://deservicesaztraining.com/registration-checkout/?uts=1565886910#checkout |
|
Here is a screenshot as well…. |
|
As you can see I have styled the link the way I want and I just need to replace the text. |
|
I think you’ll need to clear your cache and start a new session in order to see the changes take effect. Here’s what I see: |
|
Great! I was hoping it was something like that. You guys are awesome. Thank you for the help. |
|
One last easy question I figured I’d ask before messing with it. Can I add <br> or html in the string within the translation function? Like if I wanted to add “otherwise login and continue with your registration below?” to the translation but knock it down below the link? |
|
You could, technically speaking, make that change. Please be aware that in the future the html could end up getting escaped which would not look very good. The following CSS could accomplish something similar:
and would be more future proof. |
|
The support post ‘Change Text and Styling of Registration/Login Prompt’ 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.