Carousel / Grid
Last updated
Last updated
Embed feed - Carousel or Grid allows the content to be displayed as a row or grid of thumbnails. Embed feeds are usually used for content discovery where the user can see multiple content and increases the chance to initiate the content engagement.
Place the javascript part either on the <head>
or <body>
or right above the Firework component you are adding.
Place the web component where the feed should be displayed.
In case your page uses multiple widget components, insert <script>
tag with combined fwn.js
file instead of requesting each js file individually. This would improve your performance.
Example:
<script
async
src="//asset.fwcdn3.com/js/fwn.js"
type="text/javascript"
></script>
In addition to the attributes described below, there are Player Attributes (which affects the way player behaves) and Feed Attributes (which decides the content being displayed) . You can find the list of attributes specific to Embed Feed in the section below
Player AttributesFeed Attributesmode
row | grid | pinned
One of three available display modes.
row
size
medium | large
Thumbnail size. Does not apply to grid
mode
large
placement
top | middle | bottom
Informal value about placement position.
open_in
Where to open video player on thumbnail click.
default
- this option will allow us to pick most suitable way how to open player on page based on browser, device and others
_modal
- popup-like modal (does not leave publisher site)
_self
- current tab
_blank
- new tab
default
max_videos
Max. number of videos loaded for grid
mode. Zero 0
creates grid with infinite scroll.
paginate_by
Page size for manual pagination in grid
mode. Reveals "Load More" button to load next page. Please notepaginate_by
** and ** max_videos
are fuzzy numbers which do not allow any orphaned thumbnails to fall on next grid row.
autoplay
true | false
Autoplays first thumbnail.
true
captions
true | false
Show captions for autoplayed thumbnails
true
title
Specify title for grid
mode. Defaults to localized "Stories and Short Videos"
product_tag_placement
top | bottom | false
Product tag indicating video contains a product card can be positioned on top, bottom or disabled.
top
thumbnail_cta
Ability to render CTA's in embed feed carousel thumbnails
false
thumbnail_product_card
Ability to display product cards in embed feed carousel thumbnails
false