code added when moving text in wordpress.com post
-
When moving text around on a WordPress.com blog post, it adds this code in the background: <span style=”line-height:1.7;font-size:14px;”>
This messes up the look of the page, and I have to go back into the code for each post to fix it. This is particularly a problem as I recently changed the theme for my blog, so the <span> change is even more obvious in older posts. It only affects small sections of text (you can see this post for an example http://myhomespunhome.wordpress.com/2013/07/18/choose-your-own-adventure-cherry-invasion/#syrup)
Why is this happening, how can I stop it, and how can I find this code on old posts so I can remove it?
The blog I need help with is: (visible only to logged in users)
-
-
If you have been changing the font sizes within posts by using the Text HTML editor and your switch themes what you describe can be the result and to fix it requires editing the posts – all of them. That’s the reason I never do that in my blogs.
-
I’m not copying and pasting from anything external, just copying and pasting within the content in the Visual editor.
Otherwise, the only thing I do in the text editor is add the code for pictures since I host them on flickr, otherwise all text is written directly into the Visual post editor.
-
-
Hi Christina – Hmm, I see the span code there. Can you please describe a bit more what you mean by ‘moving text around’? Next time, can you please click into the Text editor before moving any text around and see if those tags are already there? Likely, they are for some reason and moving the text from the visual editor is moving the tags into odd places.
Any additional details you can provide about exactly what happens would help me figure this out. Maybe do a draft post and see if you can get the same thing to happen and as soon as it does, leave it and link me to the draft?
What did you do to remove the paragraph breaks from your ingredient lists, so that there’s no spacing between them? The line height is a reflection of that – you can make single spaces by just pressing Shift+enter without it creating any span tags.
-
Ok, I created a new post to test out exactly what happens: http://myhomespunhome.wordpress.com/2013/12/03/test/ (let me know if you can see it, I wasn’t sure how to set the permissions so it didn’t show up live).
I wrote all content in the Visual Editor (I make the ingredients lists the way you mentioned, Shift+enter). I checked the Text editor, no span code.
Back in the Visual editor, I highlighted a section of text and dragged it with my mouse to a new spot in the post (I guess it would be considered a shortcut of cut/paste). And that’s when the span code appears.
It seems using CTRL+X/CTRL+V don’t cause this same problem with the code, but I still can’t figure out why it’s happening when I cut/paste this way, and why it only started recently.
It looks in part to be a browser issue–I just tried this same process in Firefox, and the highlight/drag method doesn’t add the code, but Chrome does.
-
Hi Christina – Thanks for trying that out and for the clear details! I can reproduce this in Chrome, and I’ve reported it to the developers. In the meantime, please cut-and-paste text rather than click-and-drag, so this doesn’t happen.
-
Ah ok, mystery partly solved then :-) Any way I can search for this code in old posts so I can fix it, or do I have to go into the text editor for each post to see if it’s there?
-
Hi Christina – You can try searching your posts list for ‘span’ etc. I just tested it out and it pulled up posts with that in the HTML on my test blog.
-
oh that did work! for some reason it didn’t like it searching span in the < >
thanks for the help!
- The topic ‘code added when moving text in wordpress.com post’ is closed to new replies.