mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Clarify custom class to yt and vimeo shortcodes
This commit is contained in:
1 parent
0c770e40be
commit
001cd27c90
1 file changed
+8
@@ -351,6 +351,14 @@ Using the preceding `vimeo` example, the following HTML will be added to your re
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
{{% tip %}}
|
||||
If you want to further customize the visual styling of the YouTube or Vimeo output, you can add a `class` named parameter when calling the shortcode that will be added to the `<div>` that wraps the `<iframe>` *and* remove the inline styles. Note that you will need to call the `id` as a named parameter as well.
|
||||
|
||||
```
|
||||
{{</* vimeo id="146022717" class="my-vimeo-wrapper-class" */>}}
|
||||
```
|
||||
{{% /tip %}}
|
||||
|
||||
#### Example `vimeo` Display
|
||||
|
||||
Using the preceding `vimeo` example, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
|
||||
|
||||
Reference in new issue
Block a user