make header image clickable
-
1) i have done the research and tried many things…please don’t send me to ” designing headers ” = https://codex.www.ads-software.com/Designing_Headers#Making_the_Whole_Header_Clickable ??
2) a very nice logo.png is on top of my blog and the default h1 is somewhere but not visible. i can see the descriptor below my logo.png and that is the desired position.
3) i can’t make the logo.png clickable ( wanting it to go ” home ” )
4) here is the code, all valid. anybody see anything i am missing????
in HEADER.PHP
was…<div id="masthead"> <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <div class="description"> <?php bloginfo('description'); ?> </div> </div> <div class="description"> <?php bloginfo('description'); ?> </div>
changed to…
`<div id=”masthead”>
<h1><img src=”/images/image.png” alt=”domain” onclick=”location.href=’https://domain.com/’;” style=”cursor: pointer;” /></h1></div>`
in STYLE.CSS
was…h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
changed to…
h1 { font-size: 3em; line-height: 1; margin-bottom: 0; /* was 0.5em 9/19/08 */ }
was…
#masthead { margin: 0; text-align: left; height: 55px; width: 700px; float: left; }
changed to…
#masthead { margin: 0; text-align: left; height: 55px; width: 700px; float: left; background:url(images/domain.png) no-repeat; /* new line 9/19/08 it worked but not clickable */ }
- The topic ‘make header image clickable’ is closed to new replies.