Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to be able to create custom template files to override views-slideshow-pager-fields.html.twig, views-slideshow-pager-field-item.html.twig, and views-slideshow-pager-field-field.html.twig. I've tried setting up files in my theme template directory, but they're not being recognized (as far as I can tell). Is this possible without editing the module's template files? Many thanks in advance.
Comments
Comment #2
TrevorBradley CreditAttribution: TrevorBradley commentedI've hit this identical issue just now. I'm hoping the put main-section and pager-fields in a separate bootstrap regions and need to put HTML wrappers around them.
I feel like I'm close to a solution here. I can use hook_theme_suggestions_alter to add a twig suggestion:
The twig template suggestion is accepted, and I see it being considered in twig debug. However, it's not selected.
I'll keep plugging away at it.
Comment #3
TrevorBradley CreditAttribution: TrevorBradley commentedHah! That's exactly the solution. I just forgot to clear the cache after creating the twig.html file. :)
Comment #4
NickDickinsonWildeyeah cache clearing is often necessary ;)