Copy-pasting text with hyperlinks
-
Is it possible to copy-paste pre-existing text (say, in Word or Excel) that has a hyperlink embedded, directly on to WordPress without losing the link? I find that the paste functionality only pastes the text, and I need to manually add the link again.
The blog I need help with is: (visible only to logged in users)
-
Hello @tntemplesproject,
Yes, when you copy paste contents with link, it is retained in the post editor. But make sure you copy and paste it on the Visual tab, because switching to the HTML tab pastes the raw texts(without the links).Hope this helps :)
-
@Otpidusprime: Thanks for that. In fact, that’s exactly what I’ve been doing in the past. I did try the Visual tab approach again. However, The text does paste, and formatted like a link, including with appearance like a link (underline, etc). The HTML for this reads as:
- <u>Text to be linked</u>
So, the underlying links themselves are not getting copied/pasted.
-
<u>Text to be linked</u>
This code only underlines the text. It is not linked.To link a text, you need to use an anchor tag “ tag”, like this:
<a href="https://wordpress.com">Text to be linked</a>On your Word document select the text and click on the link icon to add a link to the text.
You can also add a link on the post editor, by selecting the text to be linked and then clicking on the link icon.
-
So, on the word doc, I have the TEXT TO BE LINKED already hyperlinked to a web page. It’s just that when copy-pasting to WordPress, that link got lost, and only the TEXT TO BE LINKED was getting pasted. Since each page on the blogpost would have a list of around 40 such links (on average), it would be a pain to manually link each one on WordPress.
However, thanks to your “tag” syntax, I was able to create the entire set of TEXT TO BE LINKED along with the respective hyperlinks, and am now able to paste properly into WP. I’m not an IT-knowledegable chap, but am half-decent with Excel, so your tag idea was a great shortcut !!! Many thanks, @otpidusprime !!!
-
- The topic ‘Copy-pasting text with hyperlinks’ is closed to new replies.