Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cocoonのサイトタイトルを改行するJavaScript(jQuery)
(function($){
var siteTitle = $('#header .site-name-text').text();
siteTitle = siteTitle.replace("Cocoonデモサイト", "Cocoon<br>デモサイト");
$('#header .site-name-text').html(siteTitle);
})(jQuery);
@yhira

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.