WordPress Loop – Show an overlay with embedded video on click

i am currently working on my wordpress theme for http://archive.timrodenbroeker.de and i want my wp-loop to do the following:

• Ask: Is the (advanced) custom field „videoembed“ filled?
(I use the advanced Custom field plugin“)

• If yes, create the linked text „button“

• If „button“ is clicked, switch the „overlay“-div’s display-value from „none“ to „block“ and insert the videoembed-code via AJAX, which is placed in the custom-field „videoembed“

Well, that’s it, but I don’t know, how to code that. I need some help. Could you take a look on this? Would be amazing! Thank you guys!!!

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.