Forums

[resolved] Made header image Clickable (3 posts)

  1. miche77er
    Member
    Posted 4 years ago #

    Im trying to get the header image clickable, everytime i edit the header.php, the header image disappears. I have no idea exactly what to edit??? HELP!

    Theme: interio by Jinsona designs

    This is from the style.css:

    .top {
    	height:400px;
    	margin-top:0px;
    	background:url(images/top.jpg);

    This is from the header.php:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php //comments_popup_script(); // off by default ?>
    	<?php wp_head(); ?>
    <!--[if lte IE 6]>
    
    <style type="text/css">
    .class{
    	behavior:url("pngbehavior.htc");
    	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_directory'); ?>/images/image.png');
    	background:url(images/blank.gif);
    	}
    .class {
    	behavior:url("pngbehavior.htc");
    	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_directory'); ?>/images/image.png');
    	background:url(images/blank.gif);
    	}
    </style>
    
    <![endif]-->
    
    </head>
    <body>
    
    	<div class="wrapper">
    			<div class="top">
    					<div class="blogname">
    
    				<h2><?php bloginfo('description'); ?></h2>
    			</div>
    		</div>
    
    		<div class="content">
  2. flapjacker
    Member
    Posted 4 years ago #

    For Default/Kubrick Theme, this works:

    From: http://codex.wordpress.org/Designing_Headers

    You can use the method offered by the Theme's author to make the entire WordPress Default/Kubrick Theme header clickable:

    * Open header.php template file.
    * Change from <div id="header"> to:

    <div id="header" onclick="location.href='http://siteaddress/';" style="cursor: pointer;">

  3. peteraltenberg
    Member
    Posted 3 years ago #

    Does this technique not work any more. I've been trying to get my header to be clickable and I've found this same "onclick" solution all over the place but I can't get it working. It always ends up just showing the text of the URL under the header, like it doesn't recognize the command at all.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.