Hi
I should add the labels and hide them for accessibliity
In the meantime, you could add them via CSS
.show_last_post::before {
content: ‘Last post: ‘;
}
You are should have the lang code set as a class on your body something like this will work.
body.en .show_last_post::before {
content: ‘Last post: ‘;
}
Hi Paul,
Thanks for the helpful answer.
I tried to add your css here , but it doesn’t add anything?
Try this pattern
html:lang(da-DK) .email::before {
content: 'Emal-da: ';
}
html:lang(en-US) .email::before {
content: 'Emal: ';
}
Hi Paul
Thanks, but it doesn’t work for me.
I just add the css to ‘custom css’ in the customizer of my theme.
I am not sure what you mean by this:
`You are should have the lang code set as a class on your body something like this will work.
body.en .show_last_post::before {
content: ‘Last post: ‘;
}`
Should this css be added elsewhere?
I would add the CSS in the customizer or in a child theme CSS
This works:
.Email::before {
content: “Email:”;
}
Source:Stackoverflow