Skip to content

Instantly share code, notes, and snippets.

@mkrdip
Last active November 16, 2015 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrdip/755658ce4a24b92f10ec to your computer and use it in GitHub Desktop.
Save mkrdip/755658ce4a24b92f10ec to your computer and use it in GitHub Desktop.
Replace values using jQuery
(function($){
$("#ID").text("Your Text");
$(".class").attr("placeholder", "New Value for Placeholder");
$(".class").attr("title", "New Value for Title");
})(jQuery);
@mkrdip
Copy link
Author

mkrdip commented Aug 14, 2015

For Instant Comment Validation

(function($){
  $(".comment-form-author div.error").text("Your Name Please");
  $(".comment-form-email div.error").text("Your Email Please");
  $(".comment-form-comment div.error").text("Your Comments Please");
})(jQuery); 

@mkrdip
Copy link
Author

mkrdip commented Nov 16, 2015

Change Divi Mobile Nav Text

<script>
(function($){
  $(".mobile_nav .select_page").text("Menu");
})(jQuery); 
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment