- This topic is empty.
-
AuthorPosts
-
September 28, 2016 at 11:09 am #245979
nvdwolk
ParticipantHi,
I’m trying to change the text in the read more box.
In what CSS file can i do this?
http://lucengelhard.helpmeverder.nl/nieuws/
Thank you in advance!
Kind regards
NielsSeptember 28, 2016 at 11:37 am #245984Paulie_D
MemberThe text is hardcoded in the HTML…it has nothing to do with CSS.
<a class="thb-btn thb-read-more" href="somehttps link" rel="permalink"> Read more </a>
If you aren’t doing that manually, it’ll be either in your JS or PHP .
September 28, 2016 at 6:27 pm #245991deb
Participant$(“a.thb-btn”).text(“Your New Text”);
September 29, 2016 at 12:00 am #245994nvdwolk
ParticipantDeb, i’m a newbe, where do i put this string?
I’ve put it in style.css but it doesn’t do anything.
Thank you in advance!
Kind regards
NielsSeptember 29, 2016 at 1:49 am #246001Paulie_D
MemberThat’s not CSS it’s Jquery/Javascript.
As I said, I suspect that this text is being insered automatically server-side, either by JS or your PHP based on the
thb-read-more
class.It will be up to you to locate where this is being done.
September 30, 2016 at 7:53 pm #246064nvdwolk
ParticipantI can’t work it out Pauly_D and i can’t find any reference to a .js file in chrome code inspector. How am i supposed to know where to put this string?? I have FTP access, been searching for “read more” in the .js files, no result, how frustrating this is.
Thank you anyway.
Kind regards
NielsSeptember 30, 2016 at 11:44 pm #246066Shikkediel
ParticipantIt’s not in the JS, the line deb proposed was just to change the HTML with it afterwards. Since your page is linked to jQuery already, you could for example place some
<script></script>
tags around it and put that right before the closing</body>
tag. I’m not familiar enough with WordPress to tell you where the initial text would be in the PHP template. You should also be able to change that instead of using any script.October 1, 2016 at 1:55 am #246068Beverleyh
ParticipantI’m not familiar with WordPress either but, if it’s anything like Joomla, there will be a config option in an admin settings screen where you can change the “Read More” text, OR there may be a language template override file that you can create/edit instead.
Anyway, try Googling something like “how to change the read more button text in WordPress”. I imagine you’ll find lots of help material from that, then it’s up to you to try them out until you find the one that does what you want.
October 1, 2016 at 12:11 pm #246076nvdwolk
ParticipantPaulie_D, Shikkediel and Beverleyh: thanks you very much for your respons, i really appreciate it!
I didn’t want to dig deeper into it, in the meanwhile i solved it with a very fruitful plugin:
https://nl.wordpress.org/plugins/loco-translate/
Have a nice weekend and kind regards from The Netherlands!
Niels
October 2, 2016 at 4:03 pm #246099deb
ParticipantHey sorry for late reply but don’t try to use plugin. Below your footer paste this code:
<footer>your footer here</footer>
<script>
jQuery(“a.thb-btn”).text(“Your New Text”);
</script> -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.