Page 1 of 1

Custom template not working

PostPosted: Tue Jul 12, 2011 10:26 pm
by joediffdez
I am working on a custom template for a client's site. I am following the 6 step video tutorial and I have added the css file to the publish includes and the template file to the page templates file. I added the template to the page layout section of the home page to test the css and template but it doesn't work. Everything just flows down the center of the page. It seems as if it isn't recognizing the css file that I uploaded yet I've followed the steps. Can anyone help me??

a link to the store --> http://thebestebooksonline.com/store/index.html <--

Thanks in advance for your help

Re: Custom template not working

PostPosted: Tue Jul 12, 2011 11:18 pm
by ShopSite Lauren
You need to add some spaces before all the # signs in the publish file.

When you comment out in HTML, you use <!-- comment -->, but in ShopSite, when a line starts with a #, the whole line is commented out. This makes it so that you can leave many comments to yourself in the template files, but this does cause a slight issue with CSS IDs. To fix the issue you would just make the line start with a space rather than the #. So instead of

#styleID {
padding: 0px;
}

it would be
#styleID {
padding: 0px;
}

Re: Custom template not working

PostPosted: Wed Jul 13, 2011 2:00 pm
by joediffdez
Thanks Lauren. That was it! :D