pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework

Home Page:https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WP YTPlayer & Divi Theme

giobrapisa opened this issue · comments

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

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

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