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.
To be able to theme the "Previous" and "Next" controls text on a Views Slideshow with template preprocess functions, we need to make the text available as variables to the preprocess functions and the template files. A patch for this feature is available in the comments.
Preprocess Functions
template_preprocess_views_slideshow_controls_text_previous
template_preprocess_views_slideshow_controls_text_next
Template Files
theme/views-slideshow-controls-text-next.tpl.php
theme/views-slideshow-controls-text-previous.tpl.php
Comment | File | Size | Author |
---|---|---|---|
#1 | theme_prev_next-1949118-1.patch | 2.01 KB | tyler.frankenstein |
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedHere's the patch for this feature.
Comment #1.0
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedAdjusted description to have better formatting.
Comment #2
amangoel CreditAttribution: amangoel commentedtheme applied on "previous" and "next" but not on "resume" and "pause" link
Comment #3
NickDickinsonWildeI'd suggest just overriding the template in your theme or module.