WordPress.org

Support

Support » Plugins and Hacks » Youtube Channel Gallery » [Resolved] . showing in video links in WebKit-based browsers

[Resolved] . showing in video links in WebKit-based browsers

Viewing 1 replies (of 1 total)
  • 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 );
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] . showing in video links in WebKit-based browsers’ is closed to new replies.
Skip to toolbar