• When adding text to videos via the “Text to be added under every LYTE video.” option, there is an unexpected br element that pushes the text far from the video.

    <div class="lL" style="max-width:100%;width:1280px;margin:5px;">
    <br>
    <span class="lyte_disclaimer">test</span>
    </div>

    is it possible to not insert this br element?

    I’m not sure what ltyelinks_text is meant to be but nothing is rendered, yet it appears to be not empty and so the else if is being executed. I’m not sure of the need for the br though

     if ( $disclaimer && empty( $lytelinks_txt ) ) {
                    $lytelinks_txt = '<div class="lL" style="max-width:100%;width:' . $lyteSettings[2] . 'px;' . $lyteSettings['pos'] . '">' . $disclaimer . '</div>';
                } else if ( $disclaimer ) {
                    $lytelinks_txt = str_replace( '</div>', '<br/>' . $disclaimer . '</div>', $lytelinks_txt );
                }
    

    Also is it possible to get the text placed _inside_ / overlaid on the placeholder image, aligned to the bottom? Another plugin (lazy load for videos) did this and then I styled the disclaimer’s background to a translucent black and it worked quite well

    • This topic was modified 1 year, 3 months ago by antmg.
Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can hide the <br> with some CSS;

    .lL br {display:none;}

    and I suppose most of what you’re describing can be accomplished with CSS as well, no? ??

Viewing 1 replies (of 1 total)
  • The topic ‘Text very far from video’ is closed to new replies.