• pixerize

    (@pixerize)


    Hi,

    I love your plugin, but I wanted to implement YouTube Shorts in their original aspect ratio. But on the same website, I also have regular videos. Is there a way for your plugin to set 2 different ratios for regular and shorts YouTube videos? If not, can you point me in a direction so I can extend your plugin, or send me a link as an example of extending functionality? Maybe we need a parameter in the shortcode to differentiate regular from shorts, as they use the same IDs?

    Thank you a lot

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

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

    (@optimizingmatters)

    I’m afraid I can’t think of a solution, neither in the plugin nor in the API pixerize .. :-/

    Thread Starter pixerize

    (@pixerize)

    Thank you for your fast answer. I am still playing with your plugin, but I don’t understand why I can’t hook up to your action. For example, I’ve tried to comment out add_shortcode, and via hook but it does not work. Do you know why is this not working: https://prnt.sc/Io2wzYvg5aWl

    Thank you.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, I would -at first sight- also assume that to work … any errors in the PHP errorlog? if no errors, try doing some error_log('i am in function xyz'); debug logging to see what does and what does not get triggered?

    Thread Starter pixerize

    (@pixerize)

    Hi, I have created a copy of your shorcode function, extend it to add an extra div wrapper with class vshorts, and set some css styles for it, it works until you decide to integrate a better solution to your plugin ??

    functions.php

    https://prnt.sc/jqa7VWZRR2MZ

    Kind Regards,

    Djordje

    • This reply was modified 2 years ago by pixerize.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    good workaround ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode for YouTube shorts’ is closed to new replies.