Skip to content

Instantly share code, notes, and snippets.

@vdchristelle
Last active December 22, 2015 10:48
Show Gist options
  • Save vdchristelle/6461170 to your computer and use it in GitHub Desktop.
Save vdchristelle/6461170 to your computer and use it in GitHub Desktop.
Ability to set linebreak in $h1_title Titel splitsen
<h1><?php print str_replace('[', '<span>', str_replace(']', '</span>', $h1_title)); ?></h1>
of <h1><?php print str_replace(array('[', ']'), array('<span>', '</span>'), $h1_title); ?></h1>
h1 span {
clear: both;
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment