Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nopol10

    (@nopol10)

    I am using the classic editor for this (using the official Classic Editor plugin). Also to add, the Text mode and not Visual mode.

    Try using this sample instead (I can replicate the error using the first sample from above but the one below is a more accurate reflection of the layout of my original page):

    
    <img class="alignnone size-full wp-image-15751" src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="" width="3500" height="2333">
    
    Text here
    
    Text 2
    
    Text 3
    
    [some_shortcode bg="#ffffff" text="#1c1c1c"]
    <h3>Some text</h3>
    <strong>Strong text</strong>
    
    <a href="https://www.google.com"><strong>Linky link </strong></a>
    
    <small>Small (text), here</small>
    
    <strong>Strong text</strong>
    
    More text
    
    <a href="https://www.google.com"><strong>Click me</strong></a>
    
    <small>Some (small) text, (here)</small>
    
    <strong>10101010</strong>
    
    A&nbsp; B, C
    
    <em>Emphasised text</em>&nbsp;<em><a href="https://www.google.com">Important link</a>.</em>
    
    [/some_shortcode]
    
    <strong>List:</strong>
    <ul>
        <li><em>Item 1</em></li>
        <li><em>Item 2</em></li>
        <li><em>Item 3</em></li>
        <li><em>Item 4</em></li>
        <li><em>Item 5</em></li>
        <li><em>Item 6</em></li>
    </ul>
    <a href="https://www.google.com"><img class="alignnone wp-image-15863 size-large" src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="" width="806" height="564"></a>
    
    Some other text
    
    <img class="alignnone wp-image-9838 size-full" src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" width="850" height="566" alt="">
    
    Some text
    

    Adding a div to the page in the editor to contain the entire content will prevent the bug from happening.

    • This reply was modified 6 years, 9 months ago by nopol10. Reason: Add newer sample
    Thread Starter nopol10

    (@nopol10)

    Hi Steve,

    I was entering plain text such as “Car – Small” (without the quotes) into the Alternate Text area.

    The page’s content had a format as follows before I set the Alt text through the plugin:

    
    <img src="some_image.jpg" width="1024" height="600" class="alignnone size-full wp-image-1111" />
    <br class="">
    Some text in the post content
    
    <h2>Some heading title</h2>
    More text
    
    [some-shortcode]
    Shortcode content
    More shortcode content
    [/some-shortcode]
    
    <strong>Strong text</strong>
    <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    </ul>
    
    <a href="https://some-link.com"><img class="alignnone wp-image-15863 size-large" src="some_image.jpg" alt="" width="806" height="564"></a>
    
    Some more text
    

    After setting the alt text, it became:

    
    <img src="some_image.jpg" alt="Some Alt Text" width="1024" height="600" class="alignnone size-full wp-image-1111" >
    
Viewing 2 replies - 1 through 2 (of 2 total)