Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1204166

    Hi guys,

    This: https://i.imgur.com/wPZQbzV.png, translates into this: https://i.imgur.com/CewBUzH.png
    As you can see, the <p> tags disappear when viewed on the browser. Moreover, if one saves the page when editing, opening the Code block after the page has reloaded will show that the <p> have disappeared.

    Is this a bug?

    #1204185

    put this to your child-theme functions.php:

    
    remove_filter('the_content', 'wpautop' );
    remove_filter('the_excerpt', 'wpautop' );

    refresh merging and delete all cachings if used.

    #1204452

    Hi there,

    Just put it and still not working. The <p> are still being removed :-(

    #1204470

    on that page – have you inserted the p-tags again. – this code does not bring back removed p-tags.

    #1204753

    Yes, I insert them but they keep disappearing, even from the editor. So this is what I do:

    1. I add the p tags
    2. I click on Update
    3. The page/editor automatically reloads, and if I check the Code block, the p tags are still there
    4. Now, if I manually reload the page/editor (after the previous automatic reload), then I can see that the p tags disappeared

    :-(

    #1205410

    Hi,

    Thank you for the update.

    Try to apply a class attribute to the paragraph tags. Example:

    
    <p class="dont-remove-me">An awesome text here.</p>
    
    

    Best regards,
    Ismael

    #1219789

    That works, thank you!

    #1220052

    Hi,

    Great, I’m glad that you got it working and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.