Avatar of OnsiteSupport
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?

Thanks
WordPressHTMLCSS

Avatar of undefined
Last Comment
OnsiteSupport

8/22/2022 - Mon
Tom

Please kindly explain what you mean with site description? is it in the fotter area?
Jason C. Levine

Assuming this is the site tagline, edit your header.php file and manually add the second line of text.
OnsiteSupport

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

Thanks
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jason C. Levine

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

Learn PHP.
OnsiteSupport

ASKER
Jason....that's not productive.  I am trying to help a customer and am under his timeline.
Jason C. Levine

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Tom Beck

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:

         <hgroup>
                  <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>
         </hgroup>
OnsiteSupport

ASKER
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?
Tom Beck

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>
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
OnsiteSupport

ASKER
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 apapco.com
I've added a jpg of text... not very attractive.  that's why I would like that same concept as text.

many thanks
ASKER CERTIFIED SOLUTION
Tom Beck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
OnsiteSupport

ASKER
thanks....hoping to make the code change Monday.  Will have a happy customer.
OnsiteSupport

ASKER
thanks for the help.  Took me some time to decipher the tags.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.