• I am using my website name in my header and want to change the number of lines for the site logo and site description. Right now the site logo (which is text) reads on one line:

    Eric Cowger Design

    Instead, I’d like for each word to read on a separate line such as:

    Eric
    Cowger
    Design

    I would also like for each word in the site description to do the same thing. Below, is the code from my header.php file:

    <?php echo themify_logo_image(‘site_logo’); ?>

    <?php if ( $site_desc = get_bloginfo(‘description’) ) : ?><h2 id=”site-description”><?php echo $site_desc; ?></h2><?php endif; ?>

    How can I modify this code to get the text to display the way I’ve described? Thanks very much!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The “easy” way is something like this…

    echo str_replace( ' ', '<br />', $site_desc );

    Taht will replace every space in the string with a line break.

    Thread Starter Ecowger

    (@ecowger)

    Thanks. I’m new to php so I’m wondering how to implement your solution. Does your code replace any of the existing code or does it just get added somewhere in the existing code? Thanks again!

    It replaces the existing echo $site_desc; part.

    Thread Starter Ecowger

    (@ecowger)

    Thanks, I’ll give it a try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Putting site logo & site description on multiple lines’ is closed to new replies.