The Case of the Disappearing Div Tag

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mtnmchgrl
Forum Members
Forum Members
Posts: 32
Joined: Sat Jan 29, 2011 3:50 pm

The Case of the Disappearing Div Tag

Post by mtnmchgrl »

I have the following coded into my "home" page (w/ the WYSIWYG editor OFF):

Code: Select all

<div id="slideshow">
</div>
<br />
<h4 style="text-align: center;">Please browse our online gallery of furniture and contact us to inquire about specific items you are seeking.<br /> We can help you with all your home furnishings needs!</h4>
If I go in as an editor w/ the WYSIWYG turned ON and make any kind of changes whatsoever to the text above, the slideshow disappears. I go into the code & the slideshow div is gone. So I have to keep going in and manually adding it back. Actually, the only way I can get it to show up again is manually add it back in the code w/ the WYSIWYG OFF, then I turn it ON, THEN hit submit. This seems to be the only way I can get it to reappear.

Any ideas why this is happening?

I'm not so much worried about it for me (the admin) but when I add user capabilities, that might mean them editing & deleting something. Is there anyway to remove user access from a single page?

THANKS! :)
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: The Case of the Disappearing Div Tag

Post by Wishbone »

Even though you turned off WYSIWYG, it's still filtering what it thinks is unnecessary. There was a recent topic on this: http://forum.cmsmadesimple.org/viewtopi ... 0&p=246356

All you have to do is put a comment in your div, and it won't disappear. <div id="slideshow"><!-- Comment --></div>
mtnmchgrl
Forum Members
Forum Members
Posts: 32
Joined: Sat Jan 29, 2011 3:50 pm

Re: The Case of the Disappearing Div Tag [SOLVED]

Post by mtnmchgrl »

That did the trick! Thanks so much, Wishbone! :)
Post Reply

Return to “Layout and Design (CSS & HTML)”