homepage Welcome to WebmasterWorld Guest from 54.197.65.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
How to Add Tagline to Wordpress Theme
renet

5+ Year Member



 
Msg#: 3733983 posted 11:41 pm on Aug 28, 2008 (gmt 0)

The site has the Blog Title but not the Tagline. I would like to add the tagline right under the blog title.

Here is the css:

body { margin:1px; font-size:0.8em; line-height:16px; background-color:#000000; font-family: "Trebuchet MS", "Myriad Pro", Arial;}
a { color:#000000;}
a:hover { text-decoration:none;}
#container { background: url(images/) 0px 50px #000000;}
#header { background: url(images/header.jpg) #000000;background-repeat:no-repeat;}
#logo { padding:30px 50px 35px 25px; text-align:left; }
#logo a{ color:#FFFFFF; text-decoration:none; font-weight:bold; height:32px; font-size:30px; text-transform:uppercase;float:right}
#logo a:hover { }

The folks who designed this theme used the term "logo" for 'blog title'
but they did not include any code for tagline.

Here is the header code:

<!-- header -->

<div id="header">
<div id="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
<center><div id="menu">
<ul>

<?php wp_list_pages('title_li=&depth=1' ); ?>
</ul>
</div></center>
</div>
<!--end header -->

Regards

 

Marcia

WebmasterWorld Senior Member marcia us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3733983 posted 12:40 am on Aug 29, 2008 (gmt 0)

You can probably (maybe) hard code it into header.php the same way you do for text on custom page templates, which I *think* goes like this (only did it once) and is then styled with CSS:

<?php the_content('<p class="serif">The text goes here &raquo;</p>'); ?>

That's how I did it for putting body text in the new page template I tried, but here's what's in header.php for the default Kubrick theme, which is probably the right way since Kubrick is just about the best basic standard to use for starting to customize:

<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div>
</div>

Yours has bloginfo('name') but it doesn't have bloginfo('description') and I believe both those WP tags just use the information you enter when you do your settings.

Added:
This is turning into a saga, but that's exactly what those two bloginfo tags do.
Settings > General

Title - Your Blog Title Here == <?php bloginfo('name'); ?>
Tagline - Just another WordPress weblog == <?php bloginfo('description'); ?>

So that tagline is what's used with the bloginfo('description') WP tag in the default, so changing that is what makes the change for the whole site once that tag is in header.php

[edited by: Marcia at 1:07 am (utc) on Aug. 29, 2008]

swa66

WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3733983 posted 1:08 pm on Aug 29, 2008 (gmt 0)

Doesn't wordpress offer some sort of community/support to their users?

Marcia

WebmasterWorld Senior Member marcia us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3733983 posted 9:49 am on Aug 30, 2008 (gmt 0)

>support to their users?

Sure, including the entire Codex; but it really doesn't matter where the support comes from, as long as it points in the right direction to get help. Pointing a WP user to which file and which tag to check out is the key to solving their issue, and once they know what the issue is, they can then look through the Codex for the specifics if they need to get into further details.

SuzyUK

WebmasterWorld Senior Member suzyuk us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3733983 posted 10:03 am on Aug 30, 2008 (gmt 0)

thanks Marcia, and I think this is the link?

[codex.wordpress.org...]

renet, CSS is only a styling language which helps suggest styles, colors and sizes for displaying the actual generated HTML. It has no control in programming what should appear in the HTML

The WordPress (in your case) PHP tags and codes generate that HTML, hope that helps. Sure if you get the right HTML generated (view the source code) and then it's an actual style or positioning question, then that's where CSS will come in :)

You should frequent the Wordpress site for actual help with their tags/codex as WebmasterWorld is not really a Wordpress support forum, but we do have a Content Usage and management forum [webmasterworld.com] and a lot of the members here have experience of Wordpress so sometimes the odd question that crosses over will get some help :)

renet

5+ Year Member



 
Msg#: 3733983 posted 8:41 am on Sep 4, 2008 (gmt 0)

Thanks Everyone!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved