- This topic is empty.
September 28, 2016 at 11:09 am #245979
I’m trying to change the text in the read more box.
In what CSS file can i do this?
Thank you in advance!
NielsSeptember 28, 2016 at 11:37 am #245984Paulie_DMember
The 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 #245991debParticipant
$(“a.thb-btn”).text(“Your New Text”);September 29, 2016 at 12:00 am #245994
Deb, 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!
NielsSeptember 29, 2016 at 1:49 am #246001Paulie_DMember
As I said, I suspect that this text is being insered automatically server-side, either by JS or your PHP based on the
It will be up to you to locate where this is being done.September 30, 2016 at 7:53 pm #246064
I 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.
NielsSeptember 30, 2016 at 11:44 pm #246066ShikkedielParticipant
It’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 #246068BeverleyhParticipant
I’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 #246076
Paulie_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:
Have a nice weekend and kind regards from The Netherlands!
NielsOctober 2, 2016 at 4:03 pm #246099debParticipant
Hey sorry for late reply but don’t try to use plugin. Below your footer paste this code:
<footer>your footer here</footer>
jQuery(“a.thb-btn”).text(“Your New Text”);
- The forum ‘CSS’ is closed to new topics and replies.