I've noticed that the WYSIWYG editor, in the static block configuration, randomly deletes the HTML code inside, in my case is the image slider.
I'm not sure about the reason: image size, code size, ilegal characters, code identation, spaces, etc, for what I know the code is not actually deleted at all, if I look for it on the cms_block
I found it the content
column, exactly how I coded it, but the WYSIWYG editor just a few HTML lines (deleting the UL element with everything inside), and the image slider doesn't display the images in the frontend. Sometimes accepts the code and works, sometimes it doesn't.
The images altogether has just 1MB size, and 850px x 310px... not deal I think.
This is exactly the HTML code inside the static block of the image slider:
<div class="slideshow-container">
<ul class="slideshow">
<li><a href="{{config path="><img alt="" src="{{media url="wysiwyg/slideshow/Banner_1.jpg"}}"/></a></li>
<li><a href="{{config path="><img alt="" src="{{media url="wysiwyg/slideshow/Banner_2.jpg"}}"/></a></li>
<li><a href="{{config path="><img alt="" src="{{media url="wysiwyg/slideshow/Banner_3.jpg"}}"/></a></li>
<li><a href="{{config path="><img alt="" src="{{media url="wysiwyg/slideshow/Banner_4.jpg"}}"/></a></li>
<li><a href="{{config path="><img alt="" src="{{media url="wysiwyg/slideshow/Banner_5.jpg"}}"/></a></li>
</ul>
<div class="slideshow-pager"> </div>
<span class="slideshow-prev"> </span>
<span class="slideshow-next"> </span>
</div>
After saving it, and going back to edit it, this is the code I see:
<div class="slideshow-container">
<div class="slideshow-pager"> </div>
<span class="slideshow-prev"> </span>
<span class="slideshow-next"> </span>
</div>
And once again, I can see the whole HTML code in the content
field of the cms_block
MySQL table.
Anybody can explain me what's happening here?
href
attributes should has some code like this:{{config path="web/base_url"}}catalogsearch/result/?q=shoes