• Resolved ericcorbett2

    (@ericcorbett2)


    As can be seen on the page linked to, the image caption when printed extends way beyond the size of the image.

    • This topic was modified 5 years, 6 months ago by ericcorbett2.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ericcorbett2

    (@ericcorbett2)

    Just to be clear, I’m using the standard Gutenberg image block, and adding the classes “caption” and “caption-text” does constrain the width of the captions, but the images end up being centred instead of correctly aligned.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    We’ve got a solution. We’re testing it and will release in the coming days. No update will be needed from your end.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Can you put the caption class on the FIGURE element and not the div element?

    Currently like this…

    
    <div class="wp-block-image caption">
      <figure class="alignright is-resized">
      </figure>
    </div>
    
    

    Change to this….

    
    
    <div class="wp-block-image">
      <figure class="caption alignright is-resized">
      </figure>
    </div>
    
    
    Thread Starter ericcorbett2

    (@ericcorbett2)

    I’m afraid that doesn’t help, on two counts.

    As I said, I’m using the standard Gutenberg image block, and adding any classes to the figure element using the code editor throws an error in the visual editor. But the image is in any event still centralised, just that it now appears on its own line, so the alignright class is being ignored.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Fixed the overflow. Still working on some of the style issues.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image captions extend beyond image’ is closed to new replies.