Recent Topics

1 Jan 04, 2006 17:26    

Hi,

I use 2 skins, LEAF and PLAIN (both marvellous), but I can't get the header linked.
All I want is to make the logo clickable to point it at home dir: www.silenzi.com.
How to?

Thanks,

Francesco

2 Jan 04, 2006 19:11

Hi Francesco,

off the top of my head, change this :-
<div id="header">

<h1><a href="http://www.silenzi.com/index.php" style="border:0px;"></a></h1>
<h2></h2>
</div>

to this :-

<a id="header" href="http://www.silenzi.com/index.php">&nbsp;</a>

¥

3 Jan 04, 2006 20:30

My dear ;)

I've bad news for you (and me, of course): that trick didn't work :\

In LEAF, I've a simple

<div id="header">

		
			
	</div>

I swapped that with this:

	<a id="header" href="http://www.silenzi.com/index.php">&nbsp;</a> 

And the logo disappeared :°

in PLAIN, I have:

<div id="header">


      <h1><a href="<?php bloginfo('url'); ?>" style="border:0px;"><?php $Blog->disp( '', 'htmlbody' ) ?></a></h1>
      <h2><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></h2>
		</div>

I swapped that with the same code and, and I got a 1px green dot linked to www.silenzi.com/index.php :)

What else?

Thank you mr.

Francesco

4 Jan 04, 2006 20:51

Looks like the logo is being loaded as a background via your CSS sheet. If you look in the CSS, you have a style called #header containing the following:

#header {
width:750px;
height:191px;
margin:0 auto 0 auto;
margin-bottom:40px;
background-image:url(images/silenzi_logo.jpg);
}

One way to get it to do what you want it to do is to load the image inline, (i.e. in the page, using <img> tags), and remove the background-image style from the #header reference.
Then you can wrap the <img> tag with <a> anchors and make the image a link.

jj.

5 Jan 04, 2006 21:14

Yes, thank you, it solved my problem. It was the easiest way and, as all the easy things, the last you think about ;)

Francesco

6 Jan 05, 2006 01:31

or you could just add display:block to #header ;)

¥


Form is loading...