Need simple HTML help for template header
-
I just want the image it is labeling as a background image to be a clickable hyperlink on every page, so i’m guessing i have to somehow implement the whole <A HREF=”… and the <IMG SRC=…
but every time I try and change things it makes the whole page all wacky… if anybody can just rework the code so the background image is actually a regular image, and a hyperlin, and it doesnt effect the layout in anyway that would be awesome… here’s the code:
<div id=”headerimg”>
<div style=”background: #fefefe url(‘<?php get_random_imgurl_in_dir(‘images/headers’); ?>’) no-repeat; height: 128px;”>Here is the entire text of the template in case it helps… THANKS IN ADVANCE!!!!!
<?php
/**
* @package WordPress
* @subpackage Homywhite_Theme
*/
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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 wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<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=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /><!– added by Eyoung @ 2009.30 for toggling the div –>
<script src=”<?php bloginfo(‘template_url’); ?>/lib/js/ToggleDiv.js” type=”text/javascript”></script><style type=”text/css” media=”screen”>
<?php
/* commented out by Eyoung @ 2009.05.30
// Checks to see whether it needs a sidebar or not
if ( !empty($withcomments) && !is_single() ) {
?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
<?php }
*/
?></style>
<?php /*if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); commented out by Eyoung @ 2009.05.30*/?>
<?php wp_head(); ?>
</head><div id=”wrap”>
<!– begin header
<div class=”none”>[ View menu ]</div>–><div id=”header”>
<div id=”topline”></div>
<div id=”headerTitle”>
<h1>
</h1></div>
<div id=”headerimg”>
<div style=”background: #fefefe url(‘<?php get_random_imgurl_in_dir(‘images/headers’); ?>’) no-repeat; height: 128px;”>
<!–<div class=”musicPos”>
<?php/* xspf_player::start(‘category-tag’); */?>
<span class=”musicInfo”>Background Music</span>
</div>–>
</div>
</div></div> <!– header –>
- The topic ‘Need simple HTML help for template header’ is closed to new replies.