Description
Create a shortcode that will wrap an embedded iframe with the <div class="embed-responsive"> class and any ratio specific classes.
Why it's Important
This allows the embed classes to be inserted without having to open the text editor and manually adding a div with classes.
Alternatives
We might want to consider adding this as a block for future implementations, but a shortcode will do for now.
Possible Implementation
[embed-responsive] shortcode with ratio="" as a parameter. See the Athena documentation to see the list of possible ratios.
Description
Create a shortcode that will wrap an embedded iframe with the
<div class="embed-responsive">class and any ratio specific classes.Why it's Important
This allows the embed classes to be inserted without having to open the text editor and manually adding a div with classes.
Alternatives
We might want to consider adding this as a block for future implementations, but a shortcode will do for now.
Possible Implementation
[embed-responsive]shortcode withratio=""as a parameter. See the Athena documentation to see the list of possible ratios.