Link to home
Create AccountLog in
Avatar of OnsiteSupport

asked on

Adding line to Site Description - Wordpress Theme

Good day-
I'm using the Twenty Ten wordpress theme.   I would like to add a 2nd line of text below the site description.  Any thoughts on how to accomplish this?

Avatar of Tom
Flag of Norway image

Please kindly explain what you mean with site description? is it in the fotter area?
Avatar of Jason C. Levine
Assuming this is the site tagline, edit your header.php file and manually add the second line of text.
Avatar of OnsiteSupport


Jason...yes...he site tagline.  Not knowing PHP, how can I do this without destroying code?

Not knowing PHP, how can I do this without destroying code?

Learn PHP.
Jason....that's not productive.  I am trying to help a customer and am under his timeline.
Sorry, it's merely the truth.

If you are going to be editing templates (which is the solution to the problem) you need to know enough PHP syntax to not break the tags.  If you want to paste what you see in header.php, I can walk you through it.  If you can work in javascript or perl or pretty much any language, you can see how to avoid breaking things with a simple update.

You can also use a good code editor like Programmer's Notepad or Sublime to get code coloring on the PHP file which will also give you clues about editing.
If you are going to edit the header.php file to add a second line to the description, you don't need to know php. The php code falls between the <?php and ?> tags. Just avoid changing anything between those tags and you will not destroy the code. Everything else is plain HTML.

Look for these lines in header.php under wp-content/themes/twentyten. Add the HTML shown here in bold:

                  <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                  <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
                        <h2>A second line for the site description</h2>
Tommy boy.... Thanks!!
pefect... to make things more complicated, theme twenty ten has a tag line,  right justified.

then a Rule.
possible to insert the 2nd line below the rule?
Okay, I just downloaded a copy of the old twenty ten theme. The tag line html looks like this in header.php:

<div id="site-description"><?php bloginfo( 'description' ); ?></div>

I added a second line like this:

<div id="site-description"><?php bloginfo( 'description' ); ?><br />A second line to the tag line.</div>
will try it out.  I believe that is formatted as a block right justified.   what crrates the thick line (rule)  above the header image?  I'm aiming at having the text there.  

please visit
I've added a jpg of text... not very attractive.  that's why I would like that same concept as text.

many thanks
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
thanks....hoping to make the code change Monday.  Will have a happy customer.
thanks for the help.  Took me some time to decipher the tags.