Viewing 3 replies - 1 through 3 (of 3 total)
  • When you upload an image in the WordPress backend, there are a number of options you have before you click the Insert Into Post button. Look for the Alignment section. Judging by your code, it looks like Left is most likely selected by default. When that is selected, a class of ‘alignleft’ is added to the image. This class floats the image to the left. You want to check the box for Right, which will add a class of ‘alignright’ to the image and float it to the right.

    Thread Starter jmdollente

    (@jmdollente)

    Hi Pete, thanks for your reply. Actually I have already selected the align right option but still the featured image in the post is aligned to the left. I think something in my stylesheet overrides it or options are not there. 🙁

    For that specific example above, the image still has the alignleft class on it. If I use Chrome Inspector to change the class to alignright, it snaps over to the right. If you’re choosing align right in the admin and it’s still getting the alignleft class when the post saves, CSS isn’t your problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to align featured image to the right with Type Face theme’ is closed to new replies.