Cutline Theme Support Forums » Cutline Theme Support Forums

Centering Images in 2.6

(8 posts)
  • Started 3 years ago by jacque427
  • Latest reply from McDragon
  • This topic is not resolved

  1. My images are not centering after upgrading to 2.6. Look fine in the admin side, just not on the public side.

    Posted 3 years ago #
  2. The Add Media function of the editor adds the class “aligncenter” to the IMG tag when asked to centre the image. CutLine uses “center” to do its centred, bordered images. Perhaps that is where the difficulty lies?

    Jacque // Jul 27, 2008 at 8:10 pm
    Nice idea. I went into the html and changed align=”aligncenter” to align=”center”.
    After saving it changes it to align=”alignnone” and it left aligns.
    Any more suggestions? I’m willing to try just about anything.

    Not the align attribute, the class attribute on the IMG tag. Go into the HTML and change:
    class="aligncenter ..."
    to:
    class="center ..."
    Or, if there is no class attribute add it:
    class="center"

    It's odd that something is changing the HTML after you modify it. Certainly doesn't happen here: if I break the HTML it stays broken and I get to keep both bits :(

    My Cutline is not the latest (v1.1) so there might be some difference there too.

    Posted 3 years ago #
  3. I'm using 1.1 also. Here's the html from one of the pictures with the class change you mentioned...

    [caption id="attachment_233" align="aligncenter" width="300" caption="Lincoln Logs, The Musical"]<a href="http://freshabundance.com/freshblog/wp-content//2008/07/logsmusical.jpg"><img class="center" title="logsmusical" src="http://freshabundance.com/freshblog/wp-content//2008/07/logsmusical-300x259.jpg" alt="Lincoln Logs, The Musical" width="300" height="259" /></a>[/caption]

    After saving the html remains (where before it changed) but it still won't center.

    Posted 3 years ago #
  4. Just pasted that HTML into a test post on my WP and it doesn't centre, and nor does equivalent HTML for a local image. The issue lies with the [caption] mark-up...remove that and the image and link are centred as expected. Not sure how to tackle this.

    Posted 3 years ago #
  5. Ahhh, I'll give that a try. Thank you for the help.

    Posted 3 years ago #
  6. Yep, removed the caption markup and that fixed it. How can I change this to "Resolved"?

    Until/unless a fix gets posted I can edit the each post in the html.

    jacque

    Posted 3 years ago #
  7. Got a fix via the WP Support forum....

    http://wordpress.org/support/topic/193661

    Posted 3 years ago #
  8. There is a similar, if not the same solution on http://wordpress.org/support/topic/192598

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.