Themeing the Instagram Light block photos

Created on 20 September 2021, over 3 years ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

How can I theme the output of the Instagram photos? Currently all photos are displayed using a for loop from the twig file instagram-lite-block.html.twig. Can I add bootstrap carousel markup to this twig file. Then create a patch of the changes? Is there a better way?
See example below, notice the added carousel attributes.

<div id="carouselExampleSlidesOnly" class="carousel slide instagram_gallery instagram_new insta-image-wr">
{% set image = {
'#theme':      'image',
'#uri':        post.media_url,
'#alt':        post.caption,
'#attributes': {'class':'insta-image', 'carousel-item'}
πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States leisurman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024