Post by Jacob » Sun Dec 21, 2008 1:56 am

Please help, I am trying to use the image replacement code below, so far it does not appear on the live site?

Code: Select all

<div id="top"><h1><a href="#"><span></span>mysite</a></h1></div>

Code: Select all

#top h1 span {
background : url(../image/logo.gif) no-repeat;
position : absolute;
left : 0;
top : 0;
width : 220px;
height : 57px;}

This is the file:
layout.tpl

CODE

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="<?php echo $direction; ?>" lang="<?php echo $code; ?>">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>">
<base href="<?php echo $base; ?>">
<link rel="stylesheet" type="text/css" href="catalog/template/<?php echo $this->directory; ?>/css/default.css">
<link rel="alternate" type="application/rss+xml" title="<?php echo $title; ?>" href="rss.php">
</head>
<body>
<h1><a href="./"><?php echo $title; ?></a></h1><!--this is part of opencart template -->
<div id="container">
<div id="topspace"></div>
<div id="top"><h1><href="/"><span></span>mysite</a></h1></div>
<?php if (isset($header)) { ?>
   <div id="header"><?php echo $header; ?></div>
   <?php } ?>
   <div id="Nav">
   <ul id="nav">
  <li><a href="/" title="Welcome">Welcome</a></li>
   <li><a class="current" href="#" title="Quickly book classes">Shop</a></li>
</ul>
   </div>
   <div id="column">
     <?php if (isset($cart)) { ?>
     <?php echo $cart; ?>
     <?php } ?>
     <?php if (isset($category)) { ?>
     <?php echo $category; ?>
     <?php } ?>
     <!--<?php if (isset($review)) { ?>
     <?php echo $review; ?>
     <?php } ?>
     <?php if (isset($information)) { ?>
     <?php echo $information; ?>
     <?php } ?> -->
   </div>
   <?php if (isset($content)) { ?>
   <div id="content"><?php echo $content; ?></div>
   <?php } ?>
   <?php if (isset($footer)) { ?>
   <div id="footer">
   <?php } ?> <?php if (isset($information)) { ?>
     <?php echo $information; ?>
     <?php } ?> <?php echo $footer; ?></div>
</div>
<!-- <?php if (isset($time)) { ?>
<div id="time"><?php echo $time; ?></div>
<?php } ?>-->
</body>
</html>

Running v1.5.5.1


Active Member

Posts

Joined
Thu Dec 04, 2008 9:17 pm

Post by Qphoria » Sun Dec 21, 2008 4:36 am

Based on the code you pasted I can't understand what you are trying to do. There is no image replacing that I see. I only see you adding a "Nav" bar with "Welcome" and "Book Classes Quickly" in it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Jacob » Mon Dec 22, 2008 2:49 pm

Thanks for the reply, this is the image replacement method in the code.

Code: Select all

<div id="top"><h1><href="/"><span></span>mysite</a></h1></div>
Solved:
Very straight forward really H1 was display: none; :-[

Running v1.5.5.1


Active Member

Posts

Joined
Thu Dec 04, 2008 9:17 pm
Who is online

Users browsing this forum: No registered users and 2 guests