• schirmer_rs

    (@schirmer_rs)


    Hi guys, how are you?

    I need your help to solve two issues:

    1. Even after the successfully API connection, the preview images are not showing yet (just a black screen with the video’s title and a play button is appearing);
    2. The player is not respecting the size that I defined on settings page.

    I am using the lastest Elementor Pro and WP versions, with PHP 8.4.

    Thanks in advance!

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

    (@optimizingmatters)

    re. preview; that is likely due to the local thumbnails PHP being blocked, try disabling “cache local thumbnails” to confirm?

    re. size; likely CSS conflicts somewhere somehow, if you can provide me with a URL I’ll be happy to take a look.

    best,
    frank

    Thread Starter schirmer_rs

    (@schirmer_rs)

    Hi, thanks for your answer.

    Preview: Cache Local Thumbnails disabled (and cache empty after). No changes until now.

    Size: URL – https://shorturl.at/yw8sF

    Thank you.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, I can see the thumbnail (not posting a screenshot as I’m not sure if you’d be OK with having this visible)?

    re. size; the containing div (in which LYTE is added) has a max-width of 700px (see HTML below), to the LYTE player obeys and adapts to that max-width.

    <div style="aspect-ratio:16/9; max-width:700px; margin:2em auto; display:flex; justify-content:center;">

    given the div has no proper ID, you cannot easily override the max-width, but with some JS you could identify the parent of .lyte-wrapper and change the max-width that way?

    Thread Starter schirmer_rs

    (@schirmer_rs)

    Yes, the thumb is now OK.

    I just add an aditional CSS:

    /* força largura maior para os players do WP YouTube Lyte / .lyte-wrapper { max-width: 853px !important; / limite maior */
    width: 100% !important;
    margin: 0 auto !important;
    }

    .lyte, .lty-embed {
    aspect-ratio: 16/9;
    width: 100% !important;
    height: auto !important;
    }

    .lyte iframe, .lty-embed iframe {
    width: 100% !important;
    height: 100% !important;
    }

    I will test and return. If you have another idea, please let me know. Thanks again.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’ll have to try targeting the parent of the .lyte-wrapper node, because that’s what sets the max-width, maybe this will help;

    article div:has(.lyte-wrapper){max-width:100% !important;}

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problems: YT Images + player size’ is closed to new replies.