• Resolved miche77er

    (@miche77er)


    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" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="https://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">
Viewing 2 replies - 1 through 2 (of 2 total)
  • For Default/Kubrick Theme, this works:

    From: https://codex.www.ads-software.com/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=’https://siteaddress/&#8217;;” style=”cursor: pointer;”>

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Made header image Clickable’ is closed to new replies.