X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help with Putting Full Width on Home.php (https://forum.x-cart.com/showthread.php?t=67228)

liamb2001 06-28-2013 03:38 AM

Help with Putting Full Width on Home.php
 
Hi guys, im having a little problem trying to get something to work but im sure im over thinking it

All im trying to do is put the banner above the rest of the content (sidebar & main content)

like this

http://www.mavenstudios.co.uk/help.jpg

ive tried placing in the welcome.tpl but it doesnt line up because the sidebar is called in before the welcome then the content

I would really appreciate any help

liamb2001 06-29-2013 01:01 AM

Re: Help with Putting Full Width on Home.php
 
anyone ?

liamb2001 06-29-2013 06:55 AM

Re: Help with Putting Full Width on Home.php
 
anyone at all ?

liamb2001 06-29-2013 11:45 AM

Re: Help with Putting Full Width on Home.php
 
am i on the right forums ?

cflsystems 06-29-2013 10:49 PM

Re: Help with Putting Full Width on Home.php
 
You can put it in home.tpl before content.tpl is called

liamb2001 07-01-2013 04:11 AM

Re: Help with Putting Full Width on Home.php
 
thanks for the reply mate but that just makes the slider appear on all pages. I only want it to appear on the home.php only...any idea how i do that ?

cflsystems 07-01-2013 06:08 AM

Re: Help with Putting Full Width on Home.php
 
{if $main eq "catalog" and $current_category.category eq ""}
YOUR CONTENT
{/if}

liamb2001 07-01-2013 12:18 PM

Re: Help with Putting Full Width on Home.php
 
Your a star mate thanks very much :)

liamb2001 07-01-2013 12:21 PM

Re: Help with Putting Full Width on Home.php
 
is there somepart of xcart that stops javascript working or any reason you know this isnt loading properly its absolutley puzzling me !

http://www.modernwatch.co.uk/home.php

Its a static banner slider im using but For some reason the slider is showing a load screen despite all code being correct

seems to work perfectly when i call it in via HTML but as soon as i interst into the xcart tpls i get this black loading screen

http://www.modernwatch.co.uk/slider.html

am i missing something ?

gb2world 07-01-2013 12:38 PM

Re: Help with Putting Full Width on Home.php
 
http://forum.x-cart.com/showthread.php?t=66240

---

liamb2001 07-01-2013 02:59 PM

Re: Help with Putting Full Width on Home.php
 
thanks for posting that, ive tried putting the literal tags around the script resulting in the following

{literal}<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</script>{/literal}

but the slider still doesnt appear to be working

this is my full code, am i missing something ?

{*
1e1924d979329a127f421a68658195f4e14e6c8e, v5 (xcart_4_6_0), 2013-04-09 12:52:17, home.tpl, random
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"utf-8"}"?>
<!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"{if $active_modules.Socialize} xmlns:g="http://base.google.com/ns/1.0" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#"{/if}>
<head>
{include file="customer/service_head.tpl"}
<link rel="stylesheet" href="orbit-1.2.3.css">
<link rel="stylesheet" href="demo-style.css">

<!-- Attach necessary JS -->
<script type="text/javascript" src="jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="jquery.orbit-1.2.3.min.js"></script>

<!--[if IE]>
<style type="text/css">
.timer { display: none !important; }
div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient( startColorstr=#99000000,endColorstr=#99000000);zoo m: 1; }
</style>
<![endif]-->

<!-- Run the plugin -->{literal}
<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</script>{/literal}

</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
{if $active_modules.EU_Cookie_Law ne ""}
{include file="modules/EU_Cookie_Law/info_panel.tpl"}
{/if}
<div id="page-container"{if $page_container_class} class="{$page_container_class}"{/if}>
<div id="page-container2">
<div id="content-container">

{if $main eq "catalog" and $current_category.category eq ""}
<div id="slidercontent"><div id="sliderfeatured">

<img src="dummy-images/slider01.jpg" width="960" height="340" />
<img src="dummy-images/slider02.jpg" width="960" height="340" />
<img src="dummy-images/slider03.jpg" width="960" height="340" />

</div></div><!-- #content--><br>
{/if}
<div id="content-container2">



{if $config.Socialize.soc_fb_like_enabled eq "Y" or $config.Socialize.soc_fb_send_enabled eq "Y"}
<div id="fb-root"></div>
{/if}

{include file="customer/content.tpl"}

</div>
</div>

<div class="clearing">&nbsp;</div>

<div id="header">
{include file="customer/head.tpl"}
</div>

<div id="footer">

{include file="customer/bottom.tpl"}

</div>

{if $active_modules.Google_Analytics and $config.Google_Analytics.ganalytics_version eq 'Traditional'}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}

</div>
</div>
{load_defer_code type="js"}
{load_defer_code type="css"}
{if $active_modules.Wibiya}
{$config.Wibiya.wibiya_integration_code|default:$w ibiya_integration_code}
{/if}
</body>
</html>

liamb2001 07-01-2013 03:02 PM

Re: Help with Putting Full Width on Home.php
 
i even tried putting the literal tags around the external js files

eg

{literal}<script type="text/javascript" src="jquery-1.5.1.min.js"></script>{/literal}
{literal}<script type="text/javascript" src="jquery.orbit-1.2.3.min.js"></script> {/literal}

but still not luck

liamb2001 07-02-2013 02:47 AM

Re: Help with Putting Full Width on Home.php
 
anyone ?


All times are GMT -8. The time now is 05:17 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.