• Hello,
    I have severals post displaying images. I have simply inserted all images in the post, and asked them the center align, and that’s it. Pretty simply, and pretty efficient.

    Except… that is more complicated. I have recently noticed that all post are not code (html) the same way (I guess maybe because post have been created at different year, 2016->today ).
    The reason how I have noticed that is that I have changed my WP them, and some post display properly, some not. And of course I am trying to reproduce the way that work.

    Anyway,
    today, when I insert images the code looks :

    <img class="alignnone size-full wp-image-2226" src="https://www.mywebsite.com/wp-content/uploads/2016/10/my-image1.jpg" alt="" width="1000" height="667" />
    
    <img class="alignnone size-full wp-image-2227" src="https://www.mywebsite.com/wp-content/uploads/2016/10/my-image2.jpg" alt="" width="1000" height="667" />

    What it used to be (and what I try to reproduce) :

    <p style="text-align: center;">
    <img class="alignnone size-full wp-image-2226" src="https://www.mywebsite.com/wp-content/uploads/2016/10/my-imag1e.jpg" alt="" width="1000" height="667" /> </p>
    
    <p style="text-align: center;">
    <img class="alignnone size-full wp-image-2227" src="https://www.mywebsite.com/wp-content/uploads/2016/10/my-image2.jpg" alt="" width="1000" height="667" /> </p>

    All images, with a <p> tag around.

    I have made some search, and see that most of people try to get ride of this <p> tag. There is even some plugin to take it off. I am probably one of the only one looking for the opposite!

    Can anyone call help ?
    I have many page to do, and I would like to fixe it before!

    • This topic was modified 7 years, 1 month ago by AlexOM.
    • This topic was modified 7 years, 1 month ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    The overall structure of code from the editor has changed with the new editor introduced in WordPress 5.

    What you’re seeing is normal and expected.

    Is there any reason in particular that you need to change it?

Viewing 1 replies (of 1 total)

The topic ‘Insert an image’ is closed to new replies.