• varrka

    (@varrka)


    Is there a way to make the image in the header file a link without making all website clickable. Well what i did is i add to my header image images/top.jpg :

    onclick="location.href='<?php bloginfo('url');?>';" style="cursor:pointer;"> but for same reasons all website is clickable/link to the main page.

    The code in header.php is

    [code moderated – please use the pastebin]

    Code in css is

    #main { width:766px; margin:0 auto; background:url(images/side-tall.gif) repeat-y left; border:2px #3D3D3D solid; border-top:0; border-bottom:0;}
    
    #main .top { background:url(images/top.jpg) no-repeat top;}
    #main .bot { background:url(images/side-bot.gif) no-repeat bottom left;}
    
    #header { height:14px;}
    
    #logo {margin:4px 0 0 46px; position:absolute;}

    [please don’t bump]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    (@alchymyth)

    try to move your code to the <div id="header">

    Thread Starter varrka

    (@varrka)

    <body>
    	<div id="main">
                     <div class="top" onclick="location.href='<?php bloginfo('url');?>';" style="cursor:pointer;">
    			<div class="bot">
    				<!--header -->
                                        <div id="header">
    					<div id="logo">
    						<h1><a href="<?php echo get_settings('home'); ?>/" ><?php bloginfo('name');
    Thread Starter varrka

    (@varrka)

    @ alchymyth, its not working in header. Thanks anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I Make the header image a link to my main page?’ is closed to new replies.