WordPress.org

Ready to get started?Download WordPress

Forums

Why can't I center things in WP 2.7.1? (14 posts)

  1. kristapley
    Member
    Posted 5 years ago #

    I recently updated to WordPress 2.7.1 and for some reason I can't center anything by clicking the center icon in the wysiwyg. I can't find a proper solution in the forums.

  2. iridiax
    Member
    Posted 5 years ago #

    What theme are you using? It may be out of date and need updated css added to its style.css:

    http://codex.wordpress.org/CSS#Wordpress_Generated_Classes

  3. rrbest
    Member
    Posted 5 years ago #

    I also would like to solve this problem, iridiax, your solution wasn't too clear as to what I'm supposed to do with that .css file

  4. kristapley
    Member
    Posted 5 years ago #

    I'm using Cutline 3. Here's the site:

    http://www.incontention.com

    Can't figure this out. I tried altering the css but it seems that doesn't work.

  5. iridiax
    Member
    Posted 5 years ago #

    rrbest: Older themes lack some of the css needed by newer versions of WordPress for image and caption alignment. Copy the css from the WordPress_Generated_Classes and paste it into your theme's style.css file.

    kristapley: I couldn't find class="aligncenter" anywhere in your front page source code, but I did see class="alignnone" for your images.

  6. kristapley
    Member
    Posted 5 years ago #

    So what should I do? Add class="aligncenter"?

  7. kristapley
    Member
    Posted 5 years ago #

    I added the code listed in your link and still can't align images. This makes NO sense whatsoever.

  8. kristapley
    Member
    Posted 5 years ago #

    ANYONE?? Any of the WP support people want to chime in or something. This is unbelievably silly.

  9. Geminianeyes
    Member
    Posted 5 years ago #

    I usually just write <center>in the html code.

  10. kristapley
    Member
    Posted 5 years ago #

    Kind of a band aid, no? Again, nothing from the WordPress support team?

  11. kristapley
    Member
    Posted 5 years ago #

    And putting the tag doesn't work either by the way.

  12. iridiax
    Member
    Posted 5 years ago #

    Switch to the default theme and see if it works then. If it does, then it's a problem with your other theme. If it doesn't, then temporarily disable all plugins and see if it works then. If it does, then it's a problem with one of your plugins.

  13. sittingboo
    Member
    Posted 5 years ago #

    Experiencing the similar issue after upgrading to 2.7.1 yesterday. However, while I (using IE 7) can align text & images when posting, my colleague cannot. He's also using IE 7.

    When examining the HTML code of his post, it shows align="aligncenter" - and displays centered on the WYSIWYG screen.

    Any thoughts on how/why 2 users of the same blog are getting different alignment results?

  14. kristapley
    Member
    Posted 5 years ago #

    Bump? Any help on this?

Topic Closed

This topic has been closed to new replies.

About this Topic