Responsive WordPress Slider - HG Slider
[resolved] Changing Style of Every Other Slide (2 posts)

  1. noro534
    Posted 2 years ago #

    I was wondering if anybody could point me in the direction of changing the style of every other slide.

    So slides 1, 3, and 5 all have the same style, whereas slides 2, 4, and 6 have their own style.

    I have the css created that I want assigned to each "set" of slides, but I was hoping to attach classes to the slides dynamically. So if my client reordered the slides, the style for first, third, and fifth slide (no matter what ones they are) remain the same, vice versa.

    To be more specific, I'm hoping to simply make the excerpt appear on the left-side of the slide for the odd numbers, and make it appear on the right side of the slide for even numbers.


  2. Hal Gatewood
    Plugin Author

    Posted 2 years ago #

    You will want to learn nth-child CSS selectors. Here is a nice tool that'll help you achieve the look you are after. It should be possible.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Responsive WordPress Slider - HG Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic