Home › Forums › Additional Help › Translations › Translation in "Find Events" button is too long
- This topic has 6 replies, 2 voices, and was last updated 7 years, 4 months ago by Geoff.
-
AuthorPosts
-
November 23, 2016 at 3:33 am #1196403GregParticipant
Hi,
Please see attached screenshot. The wording “Find Events” does not fit when the site is in French.
I see the button is a similar size to that on your WPShindig Demo… So I imagine it would not work for you either, if that demo was in French
Simply having “Find” or “Search” would be a better option and much shorter when translated.
Any ideas? Would prefer not to mess about with String Translation, and just have it fixed at root level
Thanks
Greg
November 23, 2016 at 8:39 am #1196579GeoffMemberHi Greg,
I would suggest using CSS to style the button so that it provides more space for the text.
If you have a link to share where I can see the live site, then I’d be happy to see if I can write a little snippet for you to use. Going off my test site, this is what I would suggest adding to your theme’s style.css file or using the Simple Custom CSS plugin:
#tribe-bar-form .tribe-bar-submit input[type=submit] { font-size: 10px; /* adjust as needed */ }
Will this work for you? Please let me know!
Cheers,
GeoffNovember 23, 2016 at 9:12 am #1196597GregParticipantGood thinking. Simple. I was overthinking it! I’ll give this a try tomorrow and let you know. thanks for the CSS lines.
November 23, 2016 at 9:22 am #1196607GregParticipantHey Geoff,
OK tried that…
Even at size 10,
TROUVER LES EVENEMENTS
Will not fit unfortunately (any smaller and it’s not readable)
The phrase simply needs to be shorter. Or over 2 lines. Maybe creating a custom page template and inserting a line break in the php code…? I’d need some guidelines if that’s the case.
Link is:
You will need host file edit as site is not live at that domain yet.
91.146.109.70 cpmr.org http://www.cpmr.org
91.146.109.70 crpm.org http://www.crpm.orgThanks for your help.
November 23, 2016 at 1:56 pm #1196735GeoffMemberHi Greg,
I would suggest continuing to tinker with CSS. For example, you can also adjust the widths of the other fields in the bar and increase the button width accordingly to create more breathing room.
Something like this might do the trick, but I’d encourage you to tailor it to suite your needs:
.tribe-bar-date-filter, tribe-bar-geoloc-filter, .tribe-bar-search-filter { width: 15% !important; } .tribe-bar-submit { width: 45% !important; }
Here’s a screenshot of how the looks when testing it on my site.
Cheers!
GeoffNovember 24, 2016 at 5:44 am #1196972GregParticipantThanks Geoff, I’ve tweaked that to fit.
(Simply having “rechercher” as the text, rather than “trouver les evenements” would solve the problem long term)
Cheers for your help, all the best
Greg
November 25, 2016 at 1:48 pm #1197605GeoffMemberMy pleasure! Happy to help. 🙂
Geoff
-
AuthorPosts
- The topic ‘Translation in "Find Events" button is too long’ is closed to new replies.