I have successfully split the tagline into 2 lines at a chosen character,with help from http://wordpress.org/support/topic/how-to-enter-a-new-line-in-tagline
<h2 class="site-description"><?php echo str_replace('-','<br />',get_bloginfo('description')); ?></h2>
and for the site title
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php echo str_replace('-','<br />',get_bloginfo('name')); ?></a></h1>
Is it possible to style each line differently?
Possibly by adding a span tag to each line within the h tags?
I am working with twenty twelve on localhost (WAMP), so can’t post a link at the moment
- The topic ‘after breaking tagline into 2 lines, apply different style to each line’ is closed to new replies.