Forum Moderators: open

Message Too Old, No Replies

Insert Tagline into Wordpress Theme

         

renet

6:34 pm on Sep 4, 2008 (gmt 0)

10+ Year Member



Hi. I am not able to get the 'description' to show up in the header.

Here is the header code:

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

Here is the CSS: (for the blog title - not sure if this css rule will work for the "tagline - description")

#logo { padding:20px 50px 45px 1px; text-align:left; }
#logo a{ color:#FFFFFF; text-decoration:none; font-weight:bold; height:45px; font-size:30px; text-transform:uppercase;float:right}
#logo a:hover { }

Thanks in Advance!

ergophobe

1:04 pm on Sep 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When you look at the HTML source code, to you see it there? Since you're using the same code as the default theme (roughly), it should spit it out. So the problem would either be on the database end, or on the HTML/CSS end.

I assume you have the background-color set to something dark?

renet

2:30 pm on Sep 5, 2008 (gmt 0)

10+ Year Member



Hi.. thanks for commenting.

This theme comes without the tagline so I have to build it in.

Tried inserting the php call and that did not work so was thinking i might need to add some css rules.

ergophobe

5:39 pm on Sep 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, but when you open a page in your browser and do a "view source" do you see it in the HTML code or not?

If not, then it's not a CSS issue. If so, then it likely is.

renet

1:45 am on Sep 6, 2008 (gmt 0)

10+ Year Member



Yes. I do see it in the html code when viewing source.

In fact, as you said - it would need css. We found it floating around by the header.jpg image and the text is black with black background.. so we are now going to add some css to correct this..

thanks!

Simsi

10:10 pm on Oct 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Personally, from an SEO perspective, I'd be inclined to make the site title and tagline an image or else every page on the site will start with the same text which can only hurt relevancy.

ergophobe

11:22 pm on Oct 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's not my experience at all provided

1. You have a unique <title> for each page. usually that's what will get listed in the SEs.

2. Your site name and tag line are not wrapped in h1 and h2 tags.

That said, I often do use an image just to make sure and also because you can get an anti-aliased font.