WordPress.org

Forums

Video Sidebar Widgets
[resolved] Hide Caption (4 posts)

  1. JanJanssen00
    Member
    Posted 2 years ago #

    Hi there,

    Is it possible to hide the video caption output in the widget (if empty the field is empty)? Because it is now creating an empty space below the video that messes up my lay-out.

    Thank you very much in advance,
    Jan.

    http://wordpress.org/plugins/video-sidebar-widgets/

  2. Denzel Chia
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I believe there is already a check in video sidebar widget and post meta video widget. I assume you are using the random video widget.

    Please open up class-randomvideosidebarwidget.php and go to line 245.
    Find the following codes.

    echo "<p class=\"VideoCaption\">$rv_cap</p>";

    and replace with the following codes.

    if(!empty($rv_cap)){echo "<p class=\"VideoCaption\">$rv_cap</p>";};

    Thanks!
    Denzel

  3. JanJanssen00
    Member
    Posted 2 years ago #

    Thanks so much Denzel, this works perfect. Did indeed concern the random widget, perhaps worth including this in a next version?

    Best,
    Jan.

  4. Denzel Chia
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I have included this in version 5.7

    Thanks!
    Denzel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.