Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] copy/pasting jquery code in page apparently generates unwanted code tags (p, (http://forum.bytesforall.com/showthread.php?t=14166)

mafgirl May 14, 2011 03:03 PM

[SOLVED] copy/pasting jquery code in page apparently generates unwanted code tags (p,
 
Hello!
Haven't been here in a while :)
Apart from my own blog and my mother-in-law's two art websites, I am now also running Atahualpa on a test site for a Landscaping/Garden design company (and an MU site with buddypress), so I am very comfortable with Wordpress and Atahualpa.

Here is my situation: I was looking for a slider plugin for the Landscaping website, but could not find one in wordpress that was suitable, so I googled jquery slide and found this: http://wowslider.com/demo.html. It's software (I'm currently running the free version, but if I can get this to work, will purchase) that creates a slideshow using jquery. It generates two folders with images (one full size, one thumbnail) and an .html file. I moved the folders in the site and copied the code from the html file in a wordpress page ('home' in this case) and adapted the file location (by default it thinks you put the files in the root). It appeared on the site, but the thumbnails were underneath each other rather than next to each other as the original code is supposed to do. I emailed their support to find out why and they wrote back:
Quote:

I have just checked your page: Actually, original WOWSlider code was changed. There were additional tags: br, span, p, etc., that WOWSlider app. doesn't generate. I removed them and now everything works correctly.
So I put the following code in CSS inserts:
Code:

#post-5.post-5 div.post-bodycopy p {display:none;}
#post-5.post-5 div.post-bodycopy br {display:none;}
#post-5.post-5 div.post-bodycopy span {display:none;}

which works as it strips the page from these code tags. BUT it obviously means I cannot use these code tags AT ALL on this page. Would anyone know of any other way to fix this so I can still use the code tags elsewhere on the page?
The code tags are displayed in the 'view source' when you go to my homepage, but not in the 'edit page' in Wordpress. And does anyone know WHY wordpress or Atahualpa would generate these code tags when not put there in the first place?


Thanks for any help! :):)

mafgirl May 16, 2011 01:44 PM

I was trying to find a solution for this problem and found a solution on good ol' Google!
The plugin http://wordpress.org/extend/plugins/raw-html/ did exactly what I wanted. You can prevent a part (or all) of your post or page from being filtered by WordPress, by wrapping it in <!--start_raw-->...<!--end_raw-->
AWESOME :-)

mafgirl Jan 19, 2012 09:10 AM

Also, since this, Wow Slider have created a plugin to make integration with WordPress much easier, find it here: http://wordpress.org/extend/plugins/...slider-plugin/


All times are GMT -6. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.