Home Forums Weaver Xtreme Theme How can I stop WordPress from automatically adding code to my text?

This topic contains 8 replies, has 4 voices, and was last updated by  scrambler 21 hours, 47 minutes ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #59717

    miamax
    Participant

    Wordpress is automatically adding code to the text I paste from Word (Home & Office 2016).

     

    What I paste:

    Plastic bubble wands can be used to blow bubbles that will glow under a blacklight. You get 11 assorted wands and a tray.

     

    When I publish, WordPress has added paragraph and tags:

    Plastic bubble wands can be used to blow bubbles that will glow under a blacklight. You get 11 assorted wands and a tray.

     

    How can I stop WordPress from doing this? I am using Weaver Xtreme Theme.

     

    Thanks for your help.

     

    #59718

    miamax
    Participant

    oops…

     

    What I paste:

    
    
    Plastic bubble wands can be used to blow bubbles that will glow under a blacklight. You get 11 assorted wands and a tray.
    
    
    

     

     

    How WordPress changes the code:

    
    
    

    Plastic bubble wands can be used to blow bubbles that will glow under a blacklight. You get 11 assorted wands and a tray.

    #59719

    miamax
    Participant

    Rats…

     

    I don’t know how to show you the code. Please highlight the above and choose “View Selection Source” to see the code.

    Thanks so much!

     

    #59722

    ealvarez
    Participant

    What about exporting first as .txt? Secondly, importing in WordPress.

    #59724

    scrambler
    Moderator

    I dont know what editor you are using (block or classic), but there is normally a tool you can select to paste as text.

    Trying to paste formatting from a text application is likely to fail with WordPress. You will need to do the styling using the WordPress editor.

    If you are inputing HTML, then you need to use an HTML block, or if using the Classic editor, Use the TEXT mode (not visual), and check the Page option “Allow Raw HTML and Script”, that will stop any WordPress formatting

    #59725

    Weaver
    Keymaster
    #59739

    miamax
    Participant

    I managed to paste as text, which went well.

     

    It turns out that it’s when I click “Update” that WordPress adds that extra code.

     

    #59740

    miamax
    Participant

    Well, I got it to work, and I’m pretty sure that it’s because I didn’t have a tag to close the link just above the problem area.

     

    It is annoying, however, that WordPress filled in that tag (which is great) but then added more tags around the next word.

    #59741

    scrambler
    Moderator

    If your HTML is bad, then you cant complain WordPress or the browsers tries to fix it (and they will) 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.