Support » Plugin: WP YouTube Lyte » Great Update – 1.7.2 / CSS Class for Text maybe?

  • Resolved Farbweiss

    (@farbweiss)


    Hey Frank,
    great update 1.7.2 – now it is more simple to enter the text below the video.
    Just one wish for future updates. Can you add a css class for the text?
    With the snippet in functions.php

    add_filter('lyte_match_postparse_template','add_gdpr_note');
    function add_gdpr_note($lyte_template) { 
    $gdpr_div = '<div class="lyte_gdpr">This site uses WP YouTube Lyte to embed YouTube video\'s. The thumbnails are loaded from YouTube servers, but those are not tracked by YouTube (no cookies are being set). Upon clicking on the play button however, YouTube can and will collect information about you.</div>'; 
    return $lyte_template.$gdpr_div; }

    one could use a class for this. Right now there i no special class for it – and if I add it with the text in the backend, it gets filtered out 🙂
    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    should actually work with .lL;

    
    .lL{font-size:36px;}

    🙂

    Farbweiss

    (@farbweiss)

    Yes it does. But the class is used for the output of the option: “watch this video on youtube”, too. So if you have both active (like I did on one blog), you can not style them separately. Like “watch this video on youtube” –> text-align:center and the message “This site uses WP YouTube Lyte to embed …” with text-align:left

    You see what I mean?

    • This reply was modified 1 year ago by  Farbweiss.
    • This reply was modified 1 year ago by  Farbweiss.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You see what I mean?

    I do 🙂

    Just committed a span to Github, this will be in a next release but feel free to make the tweak locally already 🙂

    Farbweiss

    (@farbweiss)

    Cool, thank you so much! Have a great week 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Great Update – 1.7.2 / CSS Class for Text maybe?’ is closed to new replies.