Skip to content

Instantly share code, notes, and snippets.

@munirkamal
Created April 9, 2022 10:06
Show Gist options
  • Select an option

  • Save munirkamal/4df9cf696a8332f3f3d20082318a996c to your computer and use it in GitHub Desktop.

Select an option

Save munirkamal/4df9cf696a8332f3f3d20082318a996c to your computer and use it in GitHub Desktop.
Modify the text of the 'Read more' button in Post Grid Module from Divi Sumo
<script>
var buttons = document.querySelectorAll('.cwp_post_grid .et_pb_button_module_wrapper .et_pb_button');
buttons.forEach((button) => {
button.innerHTML = "Change Button Text Here";
return button;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment