• Resolved kacsa

    (@kacsa)


    Hi,

    Is there a way to set the thumbnails to appear on different sides of the posts? I mean I’d like the thumbnail to be on the left side for odd number posts (ie 1st, 3rd, 5th etc) and on the right side, right to the text for the even number posts (ie 2nd, 4th, 6th etc).

    If you can recommend a plugin that can do that, I would appreciate that too.

    Thanks,
    Kacsa

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Yes, via CSS you can achieve that. Look up for the “nth child” selector.

    Thread Starter kacsa

    (@kacsa)

    Hi,

    Can you help me with what should I add this nth child selector to? I can’t really select the thumbnails in css, no matter what I try.
    I set the plugin so that it shows the first image in a post, and I set the post like this:

    But when I check the code it says class=”attachment-150×150 size-150×150″.

    I tried to add this code to my theme’s css:
    .somethingiknow:nth-child(even){
    float: right;
    }

    but nothing happened.

    I tried to add some tags before the class, and I tried it with the class=”attachment-150×150 size-150×150″ as well, but non of these did anything.

    The only way I can get any sort of result is if I use “li:nth-child(even)” but that obviously effects everything (including some links) and not the thumbnail only.

    Do you have any suggestion?

    Kind regards,
    Kacsa

    Thread Starter kacsa

    (@kacsa)

    Nevermind, I found the problem.

    Thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘alternate thumbnail position’ is closed to new replies.