WordPress.org

Ready to get started?Download WordPress

Forums

Youtube Channel Gallery
[resolved] . showing in video links in WebKit-based browsers (2 posts)

  1. RGTech
    Member
    Posted 1 year ago #

    Hello everyone! Great plugin by the way!

    I am having an issue where a <p></p> is getting inserted into each cell at http://www.felintonlaw.com/videos. It seems only to affect Firefox and other Webkit-based browsers. I can't seem to eliminate it. Anyone have any ideas?

    Thanks!

    http://wordpress.org/extend/plugins/youtube-channel-gallery/

  2. poudro
    Member
    Posted 1 year ago #

    One of the content filters is injecting a rogue openning <p> without closeing it anywhere. I don't know which one though.

    If you only have one post with the gallery, a quick fix for this would be :

    function remove_extra_p($content)
    {
      global $post;
    
      if ($post->ID == YOUR_POST_ID)
        return preg_replace('/<p>/','',$content);
    
      return $content;
    }
    add_filter( 'the_content', 'remove_extra_p', 200 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.