Shopsite Removing Hashtagged Lines from Page

Questions and answers about ShopSite Custom Templates

Shopsite Removing Hashtagged Lines from Page

Postby wellsfun » Fri May 01, 2015 1:23 pm

I have the following code in a custom template:

<style>
#zbody img{width:50%;}
</style>

<body id="zbody">

The problem is that "#zbody img{width:50%;}" does not appear in Shopsite generated page, but has been removed by Shopsite possibly because Shopsite thinks it is a comment. How can I ensure that "#zbody img{width:50%;}" is included in pages using the template?
wellsfun
 
Posts: 2
Joined: Fri May 01, 2015 1:04 pm

Re: Shopsite Removing Hashtagged Lines from Page

Postby Jim » Fri May 01, 2015 1:28 pm

Put a space or tab in front of the # symbol. In ShopSite the # indicates the line is a comment if the # is the very first character on the line, if it isn't the first character then it is treated as a normal character and can be used in styles.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopsite Removing Hashtagged Lines from Page

Postby wellsfun » Fri May 01, 2015 2:12 pm

Did the trick, thanks!
wellsfun
 
Posts: 2
Joined: Fri May 01, 2015 1:04 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: Google [Bot] and 18 guests

cron