Page 1 of 1

Shopsite Removing Hashtagged Lines from Page

PostPosted: Fri May 01, 2015 1:23 pm
by wellsfun
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?

Re: Shopsite Removing Hashtagged Lines from Page

PostPosted: Fri May 01, 2015 1:28 pm
by Jim
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.

Re: Shopsite Removing Hashtagged Lines from Page

PostPosted: Fri May 01, 2015 2:12 pm
by wellsfun
Did the trick, thanks!