CMS is stripping code from template port
Posted: Tue Mar 03, 2015 6:52 am
I am attempting to convert a client's purchased theme for use with CMS Made Simple 1.11.12
Each time I have added the template file code and view the published source code, half of the code is stripped. This includes the jquery located at the bottom of the page.
I have removed every variable I can. I have created the template now without adding anything controlled by CMS. I have only added the {cms_stylesheet} tag but hardcoded all of the CSS so I am not using any attached CSS files. I have the original CSS files and JS files uploaded into file manager. I have added the {content} tag so the template will be saved.
This template uses <svg> tags. Could this be causing the problem?
I have converted many purchased themes for use in CMS Made Simple. This is the most complex theme code and I have never seen CMS strip out template code before. I still have a lot to tweak in the themes many CSS files. However, this shouldn't be causing the template code to be stripped.
The code is to large to be included here.
The original page code can be viewed here:
http://www.tellercountycolorado.com/Pro ... index.html
The converted template page source code can be viewed here:
http://www.pikespeakdeals.com/alpern/
The main problem is that all of the JS code at the bottom of the page is being stripped out. I have tried using {literal} tags too but nothing seems to work. This theme does have quite a few <svg> tags.
I have spent many hours trying to determine the cause of the problem and would appreciate any help. This theme has a WordPress version but I hate using WordPress. I build everything with CMS.
Any ideas will be very helpful.
PS. I have tried adding the full 2100 lines of code into the template and then clicking Apply to view the page. If I save the template the code is stripped when I reopen the template.
Each time I have added the template file code and view the published source code, half of the code is stripped. This includes the jquery located at the bottom of the page.
I have removed every variable I can. I have created the template now without adding anything controlled by CMS. I have only added the {cms_stylesheet} tag but hardcoded all of the CSS so I am not using any attached CSS files. I have the original CSS files and JS files uploaded into file manager. I have added the {content} tag so the template will be saved.
This template uses <svg> tags. Could this be causing the problem?
I have converted many purchased themes for use in CMS Made Simple. This is the most complex theme code and I have never seen CMS strip out template code before. I still have a lot to tweak in the themes many CSS files. However, this shouldn't be causing the template code to be stripped.
The code is to large to be included here.
The original page code can be viewed here:
http://www.tellercountycolorado.com/Pro ... index.html
The converted template page source code can be viewed here:
http://www.pikespeakdeals.com/alpern/
The main problem is that all of the JS code at the bottom of the page is being stripped out. I have tried using {literal} tags too but nothing seems to work. This theme does have quite a few <svg> tags.
I have spent many hours trying to determine the cause of the problem and would appreciate any help. This theme has a WordPress version but I hate using WordPress. I build everything with CMS.
Any ideas will be very helpful.
PS. I have tried adding the full 2100 lines of code into the template and then clicking Apply to view the page. If I save the template the code is stripped when I reopen the template.