Lightbox – specially from images to video

2) Images -> VIDEO in lightbox!

  1. Plextube.nl link:
    https://plextube.nl/videos/embed/e530faba-8bd2-4818-b32c-2b64a20256ba?autoplay=1&title=0&warningTitle=0&p2p=0
    (can copy video code from stats-link in the list
    https://plextube.nl/stats/videos/e530faba-8bd2-4818-b32c-2b64a20256ba)
  2. Vimeo links: https://player.vimeo.com/472591199
  3. Bitchute

Lightboxes

  • Easy Fancybox – class=”fancybox-iframe”

2A) Add “Class” to image (!) link in TinyMCE?

WORKAROUND

PART 1 – the plugin

  1. Install Advanced Editor Tools (previously TinyMCE Advanced) Plugin
    Unfortunately not tested with the latest 3 major releases of WordPress (@11/2022) but that’s a risk one has to accept…
  2. Go to: Settings > Advanced Editor Tools >  Settings
    – Choose Classic Editor (TinyMCE)
    – Scroll down to options
    – Activate Alternative link dialog
  3. Now you have additional options when you click the link icon in the edit menu
  4. It’s hard to understand but the makers of this plugin seemed to consider “Rel” and “Target ” important but Class irrelevant.
    For this reason additionally to installing the plugin, you now also have to edit some code…

Part 2 – edit some code…

  1. go to: /wp-content/plugins/tinymce-advanced/mce/link (=advanced  editor tools!)
  2. open plugin.min.js
    text editor is good enough, but Visual Studio or similar make your life a bit easier
  3. Find the text “New Window” (somewhere around col 4775 – originally used for “Target”)
    and replace it by “your-class”
    then hit the backbutton until you reach “Target” and replace it by “Class”

Just trying… (me & wordpress) this is how it normally works

here same image with video-link that opens in wplightbox

https://plextube.nl/videos/embed/808e9092-3d80-4c4e-bfeb-91fa695b8bf3?subtitle=it&autoplay=1&warningTitle=0&p2p=0


External links

Open external links in a new window format for exceptions:
More advanced: https://ps.w.org/wp-external-links/assets/screenshot-1.png?rev=2560578

plextube.nl|youtube.com|vimeo.com|youtu.be
Click to rate this post as a whole, thank you.
[Total: 0 Average: 0]