Title: spurious html in source code
Last modified: August 21, 2016

---

# spurious html in source code

 *  Resolved [kathycac](https://wordpress.org/support/users/kathycac/)
 * (@kathycac)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/)
 * I have two sites that are basically copies of each other that I am trying this
   plugin on. One is the actual site and one is a test version.
 * On the test site it works great. On the actual site there is the issue of no 
   thumbnails and the video extending beyond its container.
 * The thumbnails are in the source code, they just do not display.
 * In trying to determine why it works on one site and not the other I have compared
   the source code of the pages.
 * On the working version the source code of the js and css looks clean, but on 
   the non-working version it has lots of <p> and </p> throughout. The source code
   of the non-working version also includes in-document CSS that the working version
   does not include.
 * Here’s the source code from the non-working version – please note all of the 
   <p> and <p/>…
 *     ```
       <p>
       	<!-- End Gallery -->
       </p>
       <p>
       	<script charset="utf-8" type="text/javascript"></p>
       <p>	(function($){
       		$(document).ready(function(){</p>
       <p>			$('#vimeography-gallery-1').fitVids();</p>
       <p>			$('#vimeography-gallery-1 .vimeography-main').spin('custom');</p>
       <p>			$('#vimeography-gallery-1 .vimeography-thumbnails').flexslider({
       				animation: "slide",
               namespace: 'vimeography-bugsauce-',
       				controlNav: false,
       				animationLoop: false,
       				slideshow: false,
       				itemWidth: 186,
       				itemMargin: 8,
       				useCSS: false,
       				prevText: "<span></span>",
       				nextText: "<span></span>"
       			});</p>
       <p>			$('#vimeography-gallery-1 .vimeography-thumbnails li').first().addClass('vimeography-bugsauce-active-slide');</p>
       <p>			$('#vimeography-gallery-1 .vimeography-thumbnails img').click(function(e) {
       				var id = $(this).attr('data-id');
       				var src = 'http://player.vimeo.com/video/'+id+'?title=0&byline=0&portrait=0&autoplay=0&api=1&player_id=vimeography-embed-1';</p>
       <p>				$('.vimeography-bugsauce-active-slide').removeClass('vimeography-bugsauce-active-slide');
       				$(this).parent().addClass('vimeography-bugsauce-active-slide');</p>
       <p>				$('#vimeography-embed-1').animate({'opacity':0}, 300, 'linear', function(){
       					$(this).attr('src', src);
       					$(this).load(function(){
       						$(this).animate({'opacity':1}, 300);
       					});
       				});</p>
       <p>	    		e.preventDefault();</p>
       <p>			});</p>
       <p>		});
       	})(jQuery)</p>
       <p></script>
       </p>
       <style type="text/css">
       <p>    #vimeography-gallery-1.vimeography-bugsauce .vimeography-thumbnails .slides li.vimeography-bugsauce-active-slide img { border-color: #0088CC; }
           #vimeography-gallery-1.vimeography-bugsauce .vimeography-thumbnails .slides li img { border-color: #0088CC; }
           #vimeography-gallery-1.vimeography-bugsauce .vimeography-bugsauce-direction-nav a.vimeography-bugsauce-prev span { border-right-color: #000000; }
           #vimeography-gallery-1.vimeography-bugsauce .vimeography-bugsauce-direction-nav a.vimeography-bugsauce-next span { border-left-color: #000000; }
           #vimeography-gallery-1.vimeography-bugsauce .vimeography-main .spinner div div { background-color: #333333; }</p>
       </style>
       ```
   
 * [http://wordpress.org/extend/plugins/vimeography/](http://wordpress.org/extend/plugins/vimeography/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Dave Kiss](https://wordpress.org/support/users/iamdavekiss/)
 * (@iamdavekiss)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772902)
 * Hey there,
 * Try surrounding your Vimeography shortcode in [raw][/raw] tags.
 * dk
 *  Thread Starter [kathycac](https://wordpress.org/support/users/kathycac/)
 * (@kathycac)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772921)
 * Hi Dave,
    I already tried that after seeing it mentioned in other threads. It
   didn’t work. And it shows [raw] and [/raw] in the page content. Thanks, Kathy
 *  Plugin Contributor [Dave Kiss](https://wordpress.org/support/users/iamdavekiss/)
 * (@iamdavekiss)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772923)
 * This comment from a post on themeforest explains it perfectly:
 * > Your theme has altered the normal ordering of the WordPress filters such that
   > the wpautop filter is run after shortcodes are parsed. The result is that extra
   > tags are printed all over the form including the JavaScript, which can cause
   > extra spacing, break the JavaScript and preventing the form showing if you 
   > have conditional logic. Some themes have a workaround – wrap the form shortcode
   > in raw tags. If that doesn’t work – see below.
   > The solution is to move the wpautop filter so that it’s run before the do_shortcode
   > filter. Your theme possibly has the code shown below somewhere, a good place
   > to start looking is the functions.php file then any shortcode related file,
   > find this code and remove it.
   > remove_filter( ‘the_content’, ‘wpautop’ );
   >  add_filter( ‘the_content’, ‘wpautop’,
   > 99 ); add_filter( ‘the_content’, ‘shortcode_unautop’, 100 );
   > If you can’t find it, the author of your theme will be able to tell you how
   > to do this or provide a workaround.
 *  Thread Starter [kathycac](https://wordpress.org/support/users/kathycac/)
 * (@kathycac)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772924)
 * Thanks, Dave, but that did not work.
 * I developed a custom child theme using the Genesis framework and have it installed
   on another test site where your video plugin is working fine.
 * I suspect it is more likely a plugin conflict. I’m trying to determine which 
   plugins are different between the sites.
 *  Thread Starter [kathycac](https://wordpress.org/support/users/kathycac/)
 * (@kathycac)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772925)
 * Hi Dave,
 * I found that the plugin Genesis Easy Columns breaks the formatting of your plugin.
 * In the plugin’s shortcode.php file it first does this –
    `remove_filter( 'the_content','
   wpautop' );`
 * And when the shortcode is finished it does this –
    `add_filter( 'the_content','
   wpautop' , 12);`
 * Not sure if that code is the culprit. I tried changing the 12 to 99 and that 
   didn’t help.
 * Guess I will need to use another column shortcode plugin. Unless you have any
   suggestions. 🙂
 *  Thread Starter [kathycac](https://wordpress.org/support/users/kathycac/)
 * (@kathycac)
 * [13 years ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3772926)
 * I decided to use the Grid Columns plugin by Justin Tadlock. Works great – and
   doesn’t mess with wpautop.
 * [http://wordpress.org/plugins/grid-columns/](http://wordpress.org/plugins/grid-columns/)
 *  Plugin Contributor [Dave Kiss](https://wordpress.org/support/users/iamdavekiss/)
 * (@iamdavekiss)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3773017)
 * Glad you found the solution. Marking as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘spurious html in source code’ is closed to new replies.

 * ![](https://ps.w.org/vimeography/assets/icon-256x256.png?rev=2625829)
 * [Vimeography: Vimeo Video Gallery WordPress Plugin](https://wordpress.org/plugins/vimeography/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vimeography/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vimeography/)
 * [Active Topics](https://wordpress.org/support/plugin/vimeography/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vimeography/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vimeography/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Dave Kiss](https://wordpress.org/support/users/iamdavekiss/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/spurious-and-inserted-in-generated-code/#post-3773017)
 * Status: resolved