html copy paste from other sites never works!
-
hi- i am about ready to quit wordpress for one of the other services because i have never been able to place easy code from other sites into text/html here without it stripping parts resulting in nonfunctioning buttons! latest example is below which meets parameter i’ve read on here- so what is the problem!?
-
it didnt even let me paste into the question correctly! above started/ended with which i read was allowed???
-
-
I have not had difficulties in pasting similar code (assuming your are pasting the whole code as shown on Ecowatch’s collaboration page at http://ecowatch.org/collaborate-with-ecowatch/.) So I tried troubleshooting their code. The code they actually have to link their images does work (Looking at their source code) but when I copied the code as given to the right of the image into a widget, it did not work. I think they made an error in the way they wrote their code and used the wrong HTML ASCII character for the dash that occurs in their alt attribute “Ecowatch – Uniting ….. ” You could probably just correct the dash with the one from your keyboard or just cut the alt attribute down to just “Ecowatch”.
I’m just a regular member so an experienced help volunteer might have another viewpoint, but I was able to make the link work by changing that one issue.
-
Well shoot, I thought that was the problem, nevertheless I am going to see if I can post the code that DID work
<p><img style="margin:10px;padding:0;" src="http://ecowatch.org/images/145ecowatchbug.png" alt="EcoWatch - Uniting the Voice of the Grassroots Environmental Movement" border="0" /></p> -
Well trying to post that left out the link that surrounds it. It says I can wrap code in the backtick character but I don’t know where that is on my iPad. But if you look at the difference in our image source part of the code, I think you will see the difference in the dash. And then just wrap it in the link for the Ecowatch page.
-
@neogapinfo:
a) To display code here you need to enclose it in backticks (see below reply field).b) WP strips out code if it’s not allowed (for security reasons) or if it’s wrong. The part that survived in your original post above is wrong: all the quotation marks should be straight quotes, not curly or slanted ones.
-
Sorry, I couldn’t find my backtick on the iPad, just realized by pasting the code from the site in my text editor that it has curly quotes too. But it still stands that the ecowatch site’s code to be pasted to the right of the image is incorrect and that the code they actually use for their own image links is correct.
-
-
tried it with only straight quotes and still nothing : (
-
• You used straight ticks, not backticks; look below the reply field please.
• What you pasted above still has the same wrong quotes.
• Maybe forget about trying to show us the code here and link to the webpage where you copied it from? -
Note: On my kegboard, the backtick ` not to be confused with the single quote mark ‘ is located to the left of the number 1 key in lower case under the tilde ~.
backtick
code
backtick -
-
-
@TT: On my keyboard it’s on the same key with the tilde, between the shift key and the Z key.
@neogapinfo: As I said, the issue is the wrong quotation marks. Click here for corrected code:
http://textsnip.com/920e30 -
thank you so much! it worked ; )
sorry to be dense but- i only have 1 option for ” on my keyboard… for future reference how do you make them straight vs curly- they seem to do their own thing? -
If you don’t have, or can’t find the backtick on your keyboard, use code tags.
<code>all the code here</code> -
That option on your keyboard will give you the correct quotes if you type them yourself in the post editor or in a text widget instead of copypasting them from other sources.
Naturally when a site gives you code to copy, the code should be correct; but the page you linked to is rather amateurish.
- The topic ‘html copy paste from other sites never works!’ is closed to new replies.