View Single Post
  #2  
Old 02-15-2011, 11:40 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Adding tabs to welcome page

You should not add additional <head></head> tags to the page. You can use webmaster mode to see the template which is creating the code for the <head> section of you page. It could be customer/service_js.tpl

When you add javascript to a smarty template, you should surround it with {literal} {/literal}. This is because javascript and smarty share common syntax, so you need to tell smarty not to interpret your javascript. (Otherwise - it sees you javascript code as smarty code.)

If you only want a block of code to show up on your home page, you can put it inside an if/than statement. Take a look at/customer/home_main.tpl file for some examples of conditions that will display only on certain pages. You probably want the same condition that includes welcome.tpl:
{if $main eq "catalog" and $current_category.category eq ""}

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote