Escape the # symbole

Questions and answers about ShopSite Custom Templates

Escape the # symbole

Postby wolfytooth » Sun Jan 02, 2011 11:34 am

I give up. How do I escape the # symbol? Shopsite uses # for comments. I have css the is defined as the following:

#nextBtn{
top:200px;
left:696px;
}

The failed because the id "nextBtn" is treated as a comment. I've worked around this before by doing things such as div#nextBtn, but this id is not a div tag. It is used by a jquery function.

Thanks for the help.
wolfytooth
 
Posts: 4
Joined: Sun Jul 25, 2010 8:45 pm
Location: USA

Re: Escape the # symbole

Postby robm » Sun Jan 02, 2011 12:15 pm

Try putting a space in front of the "#" sign in your template. ShopSite only treats the # sign as a comment when it's the first character in a line.

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 108 guests