WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Banner Clickable (4 posts)

  1. gray919
    Member
    Posted 5 years ago #

    OK. I need help on making my banner clickable. But I don't know what to add to the header.php. I appreciate any help on this. Last issue I have. Before, there was text in place of the logo which linked back to the homepage but when I added the logo, I deleted that div class as the text overlapped the logo making it look ugly. So now I'm stuck. =/

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title( ' ' ); ?></title>
    
    <script src="http://www.thehateblog.net/wp-includes/js/font-text-resizer.js" type="text/javascript"></script>
    
    <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="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>
    <body>
    
    <div class="cnt">
    	<div class="header">
    		<div class="head1">
    			<h3>About</h3>
    			<p>I tell it like it is.</p>
    		</div>
    	</div>
  2. Len
    Member
    Posted 5 years ago #

    Try this ...

    Modify <div class="header"> so that it reads ...

    <div class="header" onclick="location.href='http://www.thehateblog.net';" style="cursor: pointer;">

  3. gray919
    Member
    Posted 5 years ago #

    Thank you LenK. It works great. But when I click on a page such as http://thehateblog.net/contact/ the feature goes away. Might be an error on my part as my cache is not emptying properly so it might be working on the pages, idk.

  4. gray919
    Member
    Posted 5 years ago #

    fixed. thank you dude!

Topic Closed

This topic has been closed to new replies.

About this Topic