View Single Post
  #3  
Old 08-25-2010, 01:58 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image on home page only!

Hi cflsystem

Sorry to sound thick but iam not that clued up on coding so this is new to me, i changed my main css file back so the background is now white.
-------------------------------------
html,
body
{
height: 100%;
background-color: #FFFFFF;
margin: 0;
padding: 0;
min-width: 780px;
border: 0 none;
-------------------------------------

I inserted your infomation into /common_files/customer/home.tpl
I wasn't sure were about to put the code so i put it towards the top -

{*
$Id: home.tpl,v 1.1 2010/05/21 08:32:02 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"iso-8859-1"}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="$skin_config"}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="customer/service_head.tpl"}
</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
<div id="page-container"{if $page_container_class} class="{$page_container_class}"{/if}>

{if $main eq "catalog" && $current_category.category eq ""}
background-image: url(http://www.mysite.com/xcart/images/background/boxer_background2.jpg);
{/if}

But this didn't work as above iam not at all clued up on this coding could you kindly give me step by step please and exact coding.

Really appricated your help
Many thanks
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote