Drupal Views Slideshow show pager items as elements


/ Published in: PHP
Save to your folder(s)

Change the Views Slideshow pager items in <li> elements so that they are easier to style


Copy this code and paste it in your HTML
  1. Grab these TPls from the modules directory and copy them into your theme templates:
  2. views-slideshow-pager-field-item.tpl.php
  3. views-slideshow-pager-field-item.tpl.php
  4.  
  5. Change views-slideshow-pager-field-item.tpl.php to:
  6. <li id="views_slideshow_pager_field_item_<?php print $variables['location']; ?>_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>" class="<?php print $classes; ?>">
  7. <?php print $item; ?>
  8. </li>
  9.  
  10. Change views-slideshow-pager-field-item.tpl.php to:
  11. <ul id="<?php print $widget_id; ?>" class="<?php print $classes; ?>">
  12. <?php print $rendered_field_items; ?>
  13. </ul>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.