I can´t get arrows to work. I highlighted "Arrows" in settings but only get this in the sourcecode:
<nav class="slick__arrow"> </nav>
What am I doing wrong?

Comments

anni created an issue. See original summary.

anni’s picture

Issue summary: View changes
gausarts’s picture

Status: Active » Postponed (maintainer needs more info)

Arrows are being enforced regardless Arrows option. This allows responsive option to enable or disable this accordingly.

So the basic markups should be there, unless you empty prevArrow and nextArrow options:
http://cgit.drupalcode.org/slick/tree/templates/slick.tpl.php?h=7.x-2.x#n28

  <?php if (empty($settings['unslick'])): ?>
    </div>
    <nav class="slick__arrow<?php print $settings['skin_arrows']; ?>">
      <?php print $settings['prev_arrow']; ?>
      <?php isset($arrow_down) && print $arrow_down; ?>
      <?php print $settings['next_arrow']; ?>
    </nav>
  <?php endif; ?>

You can view existing default and copy over the prevArrow and nextArrow markups if yours are emptied by mistake.

Other potential issue:

If you are having issues with it, please install Slick example and see how it goes.

anni’s picture

Sadly the arrows option was empty.

I fixed it by putting some code in these areas. In my example:

<button type="button" data-role="none" class="slick-prev slick-arrow" style="display: block;"><i class="fa fa-chevron-circle-left" aria-hidden="true"></i></button>

and

<button type="button" data-role="none" class="slick-next slick-arrow" style="display: block;"><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></button>

Thank you for your help.

gausarts’s picture

Status: Postponed (maintainer needs more info) » Fixed

I recommend using CSS pseudo selector to assign custom arrow styling. This allows you to override Slick CSS more properly.
No need to touch template files for this particular issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.