WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. noro534
    Member
    Posted 8 months 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.

    http://wordpress.org/plugins/flexslider-hg/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 7 months 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.

    http://nth-test.com/

Reply

You must log in to post.

About this Plugin

About this Topic