Reply
CSS / Wordpress Question with logo
Old 10-19-2009, 02:34 PM CSS / Wordpress Question with logo
Experienced Talker

Posts: 30
Name: Patric
Trades: 0
Hello friends,

I have a site that is currently in development here:
http://www.betasab.host56.com

What I would like to do, is replace the text "BETASAB" with a placeholder logo that I have developed here:
http://betasab.host56.com/wp-content..._version_3.jpg

I've tried several different things, and it shoud be pretty easily done, but I can't quite figure it out. Can anyone give me a little guidance?

Much appreciated.
-Patric
Reckoner is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-19-2009, 03:43 PM Re: CSS / Wordpress Question with logo
JSTYLISH's Avatar
Graphic Designer & WebDev

Posts: 297
Name: Styla
Location: City of London
Trades: 0
Add this to your CSS
Code:
#header h1 {
display:block;
width: 251px;
height: 104px;
background:url(/wp-content/themes/shades-of-blue/images/logo_version_3.jpg);
margin:0;padding:0;
text-indent:-4999px;
}
just before the navigation css section
__________________
a website | If you have time
a magazine | If you don't have time

Last edited by JSTYLISH; 10-19-2009 at 03:44 PM..
JSTYLISH is online now
Reply With Quote
View Public Profile Visit JSTYLISH's homepage!
 
Old 10-20-2009, 04:22 PM Re: CSS / Wordpress Question with logo
Experienced Talker

Posts: 30
Name: Patric
Trades: 0
Nice, thanks.

http://betasab.host56.com/

Now, that added css works on my home page, but for some reason it doesn't appear the same way on the other pages of the site.
http://betasab.host56.com/?page_id=2

EDIT: I've figured it out. One thing though, I would like it so that the logo is a link to the home page again, since it's now a background image to H1 and H4 I am not sure how this can be done.... Any ideas please? I would greatly appreciate it.

Thanks,
Patric

Last edited by Reckoner; 10-20-2009 at 04:25 PM..
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 10-20-2009, 05:24 PM Re: CSS / Wordpress Question with logo
sequencehosting's Avatar
Skilled Talker

Posts: 77
Name: Jack
Location: Kent, England
Trades: 0
Quote:
Originally Posted by Reckoner View Post
Nice, thanks.

http://betasab.host56.com/

Now, that added css works on my home page, but for some reason it doesn't appear the same way on the other pages of the site.
http://betasab.host56.com/?page_id=2

EDIT: I've figured it out. One thing though, I would like it so that the logo is a link to the home page again, since it's now a background image to H1 and H4 I am not sure how this can be done.... Any ideas please? I would greatly appreciate it.

Thanks,
Patric
The only way to link an image is to add the image directly in the html so you could add this code

Code:
<a href="/index.php"><img src="/wp-content/themes/shades-of-blue/images/logo_version_3.jpg" width="" height="" alt="logo" /></a>
Don't forget to add the images width and height inside the ""

Instead of

Code:
<h1><a href="http://betasab.host56.com/">BETASAB</a></h1>
Certainly save a current copy of your theme including the style.css file before you try it. It worked well for me

By the way nice layout
__________________
Sequence Hosting - Website Hosting - Twitter - @sequencehosting
Earn A Lifetime Commission - Our Affiliate Program - 20% lifetime commissions
30 day FREE Shared Hosting Trial Account. No payment details needed.

Last edited by sequencehosting; 10-20-2009 at 05:26 PM..
sequencehosting is offline
Reply With Quote
View Public Profile Visit sequencehosting's homepage!
 
Old 10-20-2009, 05:57 PM Re: CSS / Wordpress Question with logo
racer x's Avatar
Ultra Talker

Posts: 280
Name: Randy
Location: Northern Wisconsin
Trades: 0
You can have an image be a link without putting it in an image tag:
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

Keep the css above and add:
h1 a { width:251px; height:104px; display:block; }

This should make that h1 clickable.

Also, you should make it practice to either put the full URL of an image in the html or the image path relative to the css file.

Last edited by racer x; 10-20-2009 at 05:59 PM..
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 10-20-2009, 08:19 PM Re: CSS / Wordpress Question with logo
Experienced Talker

Posts: 30
Name: Patric
Trades: 0
Quote:
Originally Posted by sequencehosting View Post
The only way to link an image is to add the image directly in the html so you could add this code

Code:
<a href="/index.php"><img src="/wp-content/themes/shades-of-blue/images/logo_version_3.jpg" width="251" height="104" alt="logo" /></a>
Don't forget to add the images width and height inside the ""

Instead of

Code:
<h1><a href="http://betasab.host56.com/">BETASAB</a></h1>
Certainly save a current copy of your theme including the style.css file before you try it. It worked well for me

By the way nice layout

Wow, that post was right on the money. Thanks so much for your reply, that was very helpful, I was able to make the logo link to the home page.

Also, thanks again Racer x for your help / tips.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 10-23-2009, 06:18 PM Re: CSS / Wordpress Question with logo
Experienced Talker

Posts: 30
Name: Patric
Trades: 0
Followup:

So, I've made a dropshadow as the background, but for some reason, it doesn't seem to be viewed correctly in IE, even though I've set the margin right and left to auto...

Anyone have any ideas?? Sorry for keep bothering everyone but if I could get this issue wrapped up, I would be very close to completion, and I've completely run out of ideas why this is causing issues in IE.
Reckoner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS / Wordpress Question with logo
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.16582 seconds with 13 queries