• Resolved kwdavids

    (@kwdavids)


    These WordPress posts were created before 2016 using the Visual Editor that was part of WordPress at that time. Initially, I used the commercial WooCommerce theme Canvas that displayed them correctly, but now I have switched to Twenty Ten and some of the images are not constrained to size of the post, but spill over onto the sidebar.

    There are a number of posts on my blog that exhibit the problem, one of which is provided as a link in this quest for help.

    Fixing the problem on any one post is simple; I just have to convert the post to the Block editor and save it. I don’t have touch anything in the post. I’m seeking help because the blog has over 4,000 posts and inspecting them one by one will take a very long time.

    My assumption is that there is a defect in the Twenty Ten theme that prevents it from working properly with images on posts created with the older version of the visual editor.

    • This topic was modified 1 year, 6 months ago by kwdavids.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s no defect. Every theme specifies a set of thumbnail images to be generated when you upload an image, and these different image sizes are used at various sections of your website.

    So when you switch themes, you’ll end up with existing thumbnail image sizes (specified by the old theme) that may not be optimized for the new theme.

    The recommended solution to this is to use a plugin to regenerate new thumbnails optimized for the new theme.

    For your specific issue of preventing images from extending outside the content area, head over to APPEARANCE => CUSTOMIZE => ADDITIONAL CSS, and put in the following:

    .entry-content img {
        max-width: 100%;
    }
    Thread Starter kwdavids

    (@kwdavids)

    Thank you for the elegant and effective solution to my problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images spill over into sidebar with Twenty Ten theme’ is closed to new replies.