Created
August 4, 2016 20:26
-
-
Save vu2/eadb18bed3cab5c70630e22e5879ddd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function(){ | |
var text = "ここに適当な文章を入れて下さい"; | |
$('.entry-content').each(function(){ | |
$(this).children("p").each(function(){ | |
if($(this).find('img').length != 1){ | |
$(this).html(text + "</p><p>" + $(this).html()); | |
return false; | |
} | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment