I have a slick slider embedded into another slick slider. I need to modify the template of the main slider but changing slick.html.twig applies to all sliders. My main slider is a view. My embedded slider is a field slider.

How can I target a specific slider with a template. Is there any template suggestion I can use?
Thanks

Comments

francois o created an issue. See original summary.

gausarts’s picture

Component: Code » Documentation
Status: Active » Closed (duplicate)

Perhaps a more detailed similar info here will do:
#2753223: Views twig template override

shobhit_juyal’s picture

Hey !!, did you get any fix for your post ?

shobhit_juyal’s picture

Okay,

I would like to suggest the fix here, (if not already have):

Just like any other template suggestions in Drupal, you can use "hook_theme_suggestions_HOOK_alter" here hook_theme is the name of your theme and "hook" is "slick_slide". I've tested and it worked for me. Hope you or anybody who still didn't found the fix will get his/her job done by this.

Thanks
Shobhit Juyal
(#srijan)
(#drupalIndiaAssociation2020)