I've add a script to a Squarespace site so the "read more" text is changed to "view this space" which works perfectly on the backend but doesn't seem to work in the browser unless i refresh the page.
Could anyone help me with this. I really only deal with CSS and HTML so this is a little out of my league.
I've inserted in into a code block on the pages i want to see it on.
<script>
Y.on("domready", function () {
Y.all(".summary-read-more-link").each(function (link) {
link.setContent("VIEW THIS SPACE");
});
});
</script>
Any ideas? Thank you!!