• Resolved jeckllcradlesong

    (@jeckllcradlesong)


    Hi there,
    I think the issue was tackled before with other themes but I couldnt make it work for me so I hope you can guide me through a solution.

    Im using the X-Theme for my site which uses a builder based on elements to create sites. I have an element for embedded Youtube videos where I simply paste the Code like

    <iframe width=”560″ height=”315″ src=”https://www.youtube-nocookie.com/embed/FROpp_zmOfE&#8221; frameborder=”0″ allow=”autoplay; encrypted-media” allowfullscreen></iframe>

    It seams your plugin doesnt work with that approach as according to Chrome Dev Tools, my site still connects with YT Servers whenever I load my page.

    here is a picture to illustrate the isse a bit better: https://i.imgur.com/HqQC6tJ.jpg

    Can you help me out please?
    Best wishes,
    Jeckll

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    you’ll have to add the YT differently Jeckll; simple use

    https://youtu.be/FROpp_zmOfE

    instead of the iframe-code and it will (very likely) work.

    frank

    Thread Starter jeckllcradlesong

    (@jeckllcradlesong)

    Hi Frank,
    thanks for the (very) quick response.
    Sadly, all that does is post the URL where the video was.

    View post on imgur.com

    Any other ideas?

    Thanks for your efforts,
    Jeckll

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, the problem is I (and LYTE) don’t know how the video is stored, that depends on the pagebuilder really. Assuming it is in a widget (some page builders do), you could try to add this code snippet which forces LYTE to also act on text widgets;

    add_action('lyte_actionsfilters','timelash_lyte_force_widgets',10,0);
    function timelash_lyte_force_widgets() {
    	add_filter('widget_text', 'lyte_parse', 4);
    }

    hope this helps,
    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    additionally; what seems to work with a lot of pagebuilders is adding the video in a text/ html widget/ element using the LYTE shortcode, e.g.

    [lyte id="qJ_PMvjmC6M"]

    Thread Starter jeckllcradlesong

    (@jeckllcradlesong)

    Thanks a lot frank,
    the Lyte shortcode did the trick.

    You are awesome and so is your plugin!

    Have a great day,
    Jeckll

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Thanks for the compliments Jeckll, feel free to leave a review of the plugin and support here! ??

    Isn’t it highly possible that your plugin only aims for the_content and/or the_excerpt? I wanted to use it on a site that makes use of custom fields (Advanced Custom Fields, to be precise), and using it on a WYSIWYG field with normal YT links doesn’t work, only when I use your shortcodes. With that little amount of YT videos on the site it’s not much of a hurdle to train the site owner for implementing it, though it would be a lot nicer if normal YouTube URLs worked flawlessly ;). Thanks anyway for your plugin, it nonetheless works super :).

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Isn’t it highly possible that your plugin only aims for the_content and/or the_excerpt?

    It’s not just highly possible, it simply is the case actually ?? Well, the_content, the_excerpt and .. Gutenberg blocks! ??

    I wanted to use it on a site that makes use of custom fields (Advanced Custom Fields, to be precise), and using it on a WYSIWYG field with normal YT links doesn’t work

    well, problem is LYTE cannot automagically know what ACF (or other custom fields) to act on. if you have an idea for a generic plug&play solution I’d be happy to look into that though ??

    Thanks anyway for your plugin, it nonetheless works super :).

    thanks ??

    Hey @optimizingmatters,

    thanks for taking your time to get back on my post :). I honestly am not enough of a developer to know how to address custom fields of sorts. Maybe someone else having a clue :)?

    All the best to you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Doesnt work with X theme’ is closed to new replies.