pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.34k stars 427 forks source link

WP YTPlayer & Divi Theme #496

Closed giobrapisa closed 1 year ago

giobrapisa commented 1 year ago

Hi Matteo,

i've just bought you plugin. Thanks for the amazing job. I'm experiencing some problem using the short code.

Since the is no way to create shortcode on Divi constructor i created one shortcode using the default editor: image Here's the shortcode: [mbYTPlayer url="https://www.youtube.com/watch?v=erG6jfJpqm8" custom_id="YTPlayer_579169530" elementselector="abcd" autoplay="true" mute="true" ratio="auto" isinline="false" gofullscreenonplay="false" showcontrols="false" realfullscreen="true" printurl="true" loop="false" optimize_display="true" anchor="center,center" addraster="false" stopmovieonblur="false" remember_last_time="false" gaTrack="false" ]

I opened a new page with divi builder and copied the Shortcode into a new text element. image

Then, with the builder, i edited the section. I tried to put the attribute "abcd" in this 2 places but nothing happens: image

Could you please help me? THANKS A LOT! :)

Giovanni

pupunzi commented 1 year ago

Hi Giovanni, I think the problem is that you should refer to the page element adding the "#" to specify it is an ID:

elementselector="#abcd" and add it as ID to the DIVI element you want to use.

Hope this can help. All the best, Matteo

giobrapisa commented 1 year ago

Hi Matteo, thanks for the quick reply.

PERFECT, putting the "#" just in elementselector="#abcd" in the shortcode. On Divi side: image

Many many thanks!!! 😃🙏

Giovanni