Cascade is removing tags from my code. How do I stop it from doing that?
I'm attempting to implement code that was created by an outside
design firm. One of the tags they use is simply called "main", as
in <main id="main" role="main">
. This tag is
necessary for the CSS they produced to function correctly. When I
include this in the template I'm trying to create, it simply
disappears. Is there a way to make this not happen?
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 24 Mar, 2015 01:06 PM
Hi,
This tag should be valid as long as the contents of the Template contains valid XML.
When you have a moment please provide the following so I can do some additional testing on a local instance:
Please let me know if you have any questions.
Thanks!
2 Posted by webadmin on 24 Mar, 2015 08:34 PM
The Cascade server version is 7.12.2 - f65d7
Here is the template that I'm trying to upload:
3 Posted by webadmin on 25 Mar, 2015 02:04 PM
I seem to have messed up the formatting on that last post... can I remove it?
4 Posted by Ryan Griffith on 25 Mar, 2015 02:25 PM
Hi,
No worries, I went ahead and updated the comment to add code formatting.
Let me go ahead and do some local testing and I will be in touch as soon as I have additional information.
Please let me know if you have any questions.
Thanks!
5 Posted by Ryan Griffith on 25 Mar, 2015 02:40 PM
Hi,
When you initially upload the Template content, you will notice the tabbing will be changed. This generally indicates there is something within the content the XML validation/cleanup routines do not like.
Looking at the content a bit, I noticed the Google Web Font
<link>
tag is not self-closing, so it is technically left open. Because we do not currently support HTML5's support for open tags, you will need to close it.When you have a moment, try changing:
To:
And that should fixe the issue.
Also, I wanted to note that you may run into un-secure content warnings if you are loading those web fonts over SSL. I would recommend changing that URL to
//fonts.googleapis.com/css...
instead to make it scheme-relative.Please let me know if you have any questions.
Thanks!
Ryan Griffith closed this discussion on 08 Apr, 2015 02:39 PM.