unclened
Suspended / Banned
- Messages
- 4,009
- Edit My Images
- No
Hi,
I'm fairly new to wordpress, but slowly getting the hang of it. I'm using Soundslides to create musical slideshows on my website. Soundslides has a cool responsive feature that will adjust the size of the slideshow to fit the device but I can't get the code to work because everytime I flick out of text editor, wordpress deletes some of the code and changes the remainder to text that I haven't even entered!!
The instructions sound slides is giving me is:
Responsive scaling embed code (ADVANCED)
Step 1. Add the following CSS to your html page.
<style type="text/css"><!--.embed-container { position: relative; overflow: hidden; /* To maintain a 4/3 aspect ratio use 75% for the padding-bottom value below To maintain a 16/9 aspect ratio change to 56.25% */ padding-bottom: 75%;}.embed-container iframe,.embed-container object,.embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%;}--></style>
This should be added before the '</head>' tag or to an existing style sheet.
Step 2. Copy/Paste the following text into your document.
<div class="embed-container"><iframe scrolling="no" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen src="http://'my domain'/Slideshows/portfolio/_files/iframe.html"></iframe></div>
When I flick out of text, it deletes the first portion and changes the second bit to...
</p><div class="embed-container"><iframe src="http://'my domain'/Slideshows/portfolio/_files/iframe.html" width="300" height="150" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></div>
The slideshow still appears on the page but it's tiny unless I make it full screen, which isn't the way it's meant to be.
Any ideas?
I'm fairly new to wordpress, but slowly getting the hang of it. I'm using Soundslides to create musical slideshows on my website. Soundslides has a cool responsive feature that will adjust the size of the slideshow to fit the device but I can't get the code to work because everytime I flick out of text editor, wordpress deletes some of the code and changes the remainder to text that I haven't even entered!!
The instructions sound slides is giving me is:
Responsive scaling embed code (ADVANCED)
Step 1. Add the following CSS to your html page.
<style type="text/css"><!--.embed-container { position: relative; overflow: hidden; /* To maintain a 4/3 aspect ratio use 75% for the padding-bottom value below To maintain a 16/9 aspect ratio change to 56.25% */ padding-bottom: 75%;}.embed-container iframe,.embed-container object,.embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%;}--></style>
This should be added before the '</head>' tag or to an existing style sheet.
Step 2. Copy/Paste the following text into your document.
<div class="embed-container"><iframe scrolling="no" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen src="http://'my domain'/Slideshows/portfolio/_files/iframe.html"></iframe></div>
When I flick out of text, it deletes the first portion and changes the second bit to...
</p><div class="embed-container"><iframe src="http://'my domain'/Slideshows/portfolio/_files/iframe.html" width="300" height="150" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe></div>
The slideshow still appears on the page but it's tiny unless I make it full screen, which isn't the way it's meant to be.
Any ideas?
