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)
-   -   Text/Images outside of the Container (https://forum.x-cart.com/showthread.php?t=56506)

obaluba2 11-10-2010 01:49 PM

Text/Images outside of the Container
 
Hi,

I am working on a 4.1.1 installation and I would like to put some content outside of the main container. I've tried to edit rectangle_bottom and Footer but this places content within the main layout. How do I get outside of it?

thanks

:-)

balinor 11-10-2010 01:50 PM

Re: Text/Images outside of the Container
 
You'd need to edit the template that has the container, which is customer/home.tpl

obaluba2 11-10-2010 02:03 PM

Re: Text/Images outside of the Container
 
I tried that but it just sits inside the footer? any ideas on how to get outside of that?

thanks for replying

balinor 11-10-2010 02:27 PM

Re: Text/Images outside of the Container
 
Well you need to get it outside the last line of code before the closing </body> tag. All depends on how your site was customized

obaluba2 11-10-2010 10:14 PM

Re: Text/Images outside of the Container
 
its a simple site working on the 3 column layout. It uses a white padding round the site to give the illusion of a thick border. I would like the content to appear under this border.

I've tried before the </body> but that still leaves me inside that container

thanks for your reply

balinor 11-11-2010 05:32 AM

Re: Text/Images outside of the Container
 
Post your home.tpl

obaluba2 11-11-2010 05:46 AM

Re: Text/Images outside of the Container
 
Thanks for looking Balinor,

HOME.tpl is as:

Code:

{* $Id: home.tpl,v 1.88.2.14 2008/07/15 12:07:39 ferz Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
{if $main eq "catalog" and $current_category.category eq ""}
Insert your keyword-rich title here
{else}
{strip}
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%} :: {/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%} :: {/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{if $config.SEO.page_title_limit <= 0}
{$smarty.capture.title}
{else}
{$smarty.capture.title|replace:" ":" "|truncate:$config.SEO.page_title_limit|replace:" ":" "}
{/if}
{/strip}{/if}</title>
{include file="meta.tpl" }
<link rel="stylesheet" type="text/css" href="{$SkinDir}/{#CSSFile#}" />
</head>
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>
{include file="rectangle_top.tpl" }
{include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
{if $main eq "catalog" && $current_category.category eq ""}
<iframe name="FRAME1" src="/store/anim/anim.htm" width="860" height="150" frameborder="0" scrolling="no" style="margin:0px 0px 15px 0px"></iframe>
{/if}
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }
<br />
{/if}
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{if $active_modules.Survey && $menu_surveys}
{foreach from=$menu_surveys item=menu_survey}
{include file="modules/Survey/menu_survey.tpl"}
<br />
{/foreach}
{/if}
{include file="help.tpl" }
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />
<img src="{$ImagesDir}/30shipping.gif " alt="Up to 30kg in weight only ё7.95 delivery!" border="0">
</td>
<td valign="top" width="100%">
<!-- central space -->
{if $main ne "catalog" or $current_category.category ne ""}
{include file="location.tpl"}
{/if}
{if $gcheckout_enabled and $main ne "cart" and $main ne "checkout" and $main ne "anonymous_checkout" and $main ne "order_message"}
<div align="right">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</div>
{/if}
{include file="dialog_message.tpl"}
{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{include file="customer/home_main.tpl"}
<!-- /central space -->
 
</td>
<td class="VertMenuRightColumn">
{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' && $sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}
<br />
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
<br />
{/if}
{include file="customer/menu_cart.tpl" }
<br />
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
<br />
<img src="{$ImagesDir}/paymentlogos.jpg " alt="process all payments via Comodo Secure SSL" border="0"><br />
<br />
<img src="{$ImagesDir}/nextdayshipping.gif " alt="If the product is in stock we can deliver next day!" border="0">
{include file="news.tpl" }
{if $active_modules.XAffiliate ne "" && $config.XAffiliate.partner_register eq 'Y'}
<br />
{include file="secure.tpl" }
<br />
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
<br />
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<br />
{include file="poweredby.tpl" }
<br />
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td width="30%" bgcolor="#FFCCCC">cheap sweets<br />
      mass sweets<br />
      discount sweets<br />
      buy sweets<br />
      jars of sweets<br />
      trade sweets<br />
    batch sweets<br />
old fashioned sweets wholesale<br />
retro sweets<br />
penny sweets<br />
sweet shop</td>
    <td width="37%" bgcolor="#FFCCCC">wholesale old fashioned sweets<br />
      wholesale sweets suppliers<br />
      wholesale bulk sweets<br />
      wholesale sweets sweetshop<br />
      cheap sweets<br />
      buy sweets<br />
      retro sweets<br />
      trade sweets<br />
      wholesale chocolate<br />
    wholesale confectionary<br />
    Contract packing</td>
    <td width="33%" bgcolor="#FFCCCC"><p>sweet shop<br />
        traditional sweets<br />
      wedding sweets<br />
      american sweets<br />
      retro old fashioned sweets<br />
    boiled sweets wholesale<br />
        boiled sweets buy<br />
        boiled sweets confectionery<br />
        old fashioned boiled sweets<br />
        boiled sweets shop<br />
        traditional boiled sweets<br />
    </p></td>
  </tr>
</table>
{include file="rectangle_bottom.tpl" }
{if $active_modules.Google_Analytics ne "" && $config.Google_Analytics.ganalytics_code ne ""}
 {include file="modules/Google_Analytics/ga_code.tpl"}
{/if}
</body>
</html>
{/if}


I want the content outside of the main container. I have a border round the site which is white.. So essentially I'd the content under the site just on the background

Thanks again for looking!

balinor 11-11-2010 05:56 AM

Re: Text/Images outside of the Container
 
So how is the border set? Do you have it applied to a class? Posting code in the area shown below will appear outside the container unless you have an unclosed div or table tag causing it to not close:


{if $active_modules.Google_Analytics ne "" && $config.Google_Analytics.ganalytics_code ne ""}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}

CODE HERE

</body>

obaluba2 11-11-2010 06:15 AM

Re: Text/Images outside of the Container
 
I've put it there but its still within the boundaries, it looks OK though so i'll run with that. Thanks for your help :)


All times are GMT -8. The time now is 05:03 PM.

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