[resolved] WP 3.4 Breaks Captions (6 posts)

  1. kabitzin
    Posted 3 years ago #

    After upgrading to WP 3.4, all new captions do not render correctly.


    If you go there you will see the newest posts just have the caption right next to the image, whereas all older captions are properly styled underneath the image. I used the image uploader to add the images.

    I am running Thesis theme, and if I switch to Twenty Eleven, the new captions display properly. The captions show correctly while within the visual editor as well. I suspect it is a theme issue with the new way WP handles captions, but how can I fix the theme to render captions correctly?

    Things that I have tried that had no effect:
    - deactivating all plugins
    - resetting the plugins folder by FTP or PhpMyAdmin
    - re-uploading the wp-admin and wp-includes folders from a fresh download

    Looking through the HTML code, it appears that WP now strips some code out. There's a missing class for alignment of the image, there's no div around the image/caption, and there is no <p> (and thus no <p> with a unique class, either) or other HTML around the caption like there was prior to WP 3.4.

    <dl id="attachment_31587" class="wp-caption alignright" style="width: 310px;">
    <dt class="wp-caption-dt">

    Is stripped out according to another user, from this thread.

  2. kabitzin
    Posted 3 years ago #

    If you are using Thesis, the workaround has been posted in the support forums.

    WP 3.4 made some changes to its captions functionality (mainly in order to allow the use of basic HTML); and these changes apparently conflict with the filter/shortcode function Thesis applies to captions.

    Code has been provided to strip the Thesis version in your custom functions php file and re-establish the wp shortcode.

  3. rlaburn
    Posted 3 years ago #

    Please can you post the link to where the code has been provided for the Thesis workaround. I have tried searching for it but have not been successful in finding the solution. Many thanks.

  4. kabitzin
    Posted 3 years ago #

    Here, if you are a Thesis member.

  5. Jay Versluis
    Posted 3 years ago #

    We're discussing this over here too, including quick fix:


  6. lexistudio
    Posted 3 years ago #

    Hi, I also had the same problem with my image captions not being aligned under the image or in the frame (the frame is lost) after the upgrade to 3.4. I use theme Twenty-Eleven, and I haven't done anything except hit the update button. I know nothing about code, so I'm not sure what to do to fix this...

    My old posts are fine, my new post is not: http://lexireidstudio.com/2012/06/17/shadow-boxes-and-three-dimensional-collages/

    Any assistance would be greatly appreciated!!

Topic Closed

This topic has been closed to new replies.

About this Topic