WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: wordTube] WordTube 2.1.0 Widget generates <p/> (3 posts)

  1. nhowarth
    Member
    Posted 5 years ago #

    The WordTube 2.1.0 widget inserts <p/>, which messes up visual presentation.

    Any ideas on how to remove it please?

    <li class="widget wid-show-wordtube" id="wordtube"><h2 class="widgettitle">TV & radio reports, documentaries & interviews</h2>
    <p/><div class="wordtube">
    <object height="237" width="296"

    Thanks

  2. Lee Rickler
    Member
    Posted 5 years ago #

    I'm not 100% sure which tag you mean but maybe this is the one:

    In wordtube > lib > widget.php

    around line 35
    '// These lines generate our output.
    echo $before_widget . $before_title . $title . $after_title;
    $url_parts = parse_url(get_bloginfo('home'));
    echo '<p>';
    if ($dbresult)
    if ($width == 0) $width = $dbresult->width;
    if ($height == 0) {
    if ($dbresult->width == 0)
    $height = $dbresult->height;
    else
    $height = $width / $dbresult->width * $dbresult->height;
    }
    echo $wordTube->ReturnMedia($dbresult->vid, $dbresult->file, $dbresult->image, $width, $height, $dbresult->autostart, $dbresult);
    echo '</p>';
    echo $after_widget;'

    Just comment out the p tags:

    '// These lines generate our output.
    echo $before_widget . $before_title . $title . $after_title;
    $url_parts = parse_url(get_bloginfo('home'));
    //echo '<p>';
    if ($dbresult)
    if ($width == 0) $width = $dbresult->width;
    if ($height == 0) {
    if ($dbresult->width == 0)
    $height = $dbresult->height;
    else
    $height = $width / $dbresult->width * $dbresult->height;
    }
    echo $wordTube->ReturnMedia($dbresult->vid, $dbresult->file, $dbresult->image, $width, $height, $dbresult->autostart, $dbresult);
    //echo '</p>';
    echo $after_widget;'

    It did it for me!

  3. nhowarth
    Member
    Posted 5 years ago #

    That's great bigbadboy

    It did it for me as well!

    Many thanks for your help

Topic Closed

This topic has been closed to new replies.

About this Topic