Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 218
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
 
 
Register now for full access!
Old 10-19-2009, 03:43 PM Re: CSS / Wordpress Question with logo
StylaStyla's Avatar
Mad Man

Posts: 401
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
__________________
Freelance Graphic Designer not for hire

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

Posts: 218
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
zomex's Avatar
Ultra Talker

Posts: 308
Name: Jack
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
__________________

Please login or register to view this content. Registration is FREE
- Hosting over 200 websites!


Please login or register to view this content. Registration is FREE
from just $3.99/month

Please login or register to view this content. Registration is FREE
- 20% Lifetime Commissions!
Please login or register to view this content. Registration is FREE

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

Posts: 457
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
Extreme Talker

Posts: 218
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
Extreme Talker

Posts: 218
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.33981 seconds with 12 queries