• I am writing a post with the blocks editor and I have about 20 links I want to paste in.

    As you already know blocks automatically converts all these links to embeds which is super annoying. I just want my god damn links in plain text, or at least as “HREF” links.

    How can I stop blocks from converting my links to embeds? I just want to paste the text in and keep it as text, no embeds.

    Do I really need to start writing HTML again?

    I did read this post, but sadly this guy didn’t get much help either…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    So, you just want a list of 20 URLs all on their own line?

    It would help to have an idea of what you want the final result to be.

    Thread Starter sg23838586

    (@sg23838586)

    Yes I want to paste in 20 links, plain text, no embedding. Although I do not mind if the links are transformed to links.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    WordPress doesn’t really have a means to not embed plain links pasted in. It’s trying to assist, basically.

    You could make a List Block, and then paste the links into there. Since it only tries to embed links when they’re on a line by themselves, things in lists don’t get the same treatment.

    Thread Starter sg23838586

    (@sg23838586)

    Well, that is just absolutely tragic. I am amazed. I have no words… Thanks, WP for taking away basic functionality.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    If you paste in a link and it can’t embed, then there is a button to turn it back to just a normal link. Most people prefer embeds.

    And avoiding them is relatively easy, because it only tries to embed them when they’re all by themselves on the same line. Not a lot of cases where people want just a plain http text line without it doing something or looking like something else.

    Thread Starter sg23838586

    (@sg23838586)

    Clicking “Convert to link” is not a solution at all. First of all, it is extremely inconvenient to click on “Convert to link” for each link if you have many links. Second, if the link is actually “embeddable” and is embedded, there is no option to turn the link back to an a href so you are stuck.

    Pasting the text without a line break is also not a good solution because each link will be added as plain text but without the href tag. This means you will have to add the link to each line manually. Also for some strange reason, WordPress adds a space to the beginning o each link so you will have to edit that too every time.

    I was honestly very excited for WP blocks, but with problems like this, I am considering switching to Jekyll or Ghost instead.

    I know you are only trying to help and thanks for giving advice. But I think problems as these should be acknowledged and fixed. I have been using WordPress since 2010 and I loved it. Now I can’t stand it…

    • This reply was modified 5 years, 6 months ago by sg23838586.
    • This reply was modified 5 years, 6 months ago by sg23838586.
    • This reply was modified 5 years, 6 months ago by sg23838586.
    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    That one isn’t going to be fixed. Even the WordPress backend treats plain http links on a line by themselves as something to be embedded. Has for ages.

    If you want to post a link, then generally the text won’t match the link itself. One shortcut is to paste the link on top of selected text. For example, if you copy an http link from a site, then select some text in the editor (click and drag to highlight it), then hit paste, instead of replacing what you selected, it will convert that text into a link to the URL you have pasted to it. This is a handy shortcut that happens when you paste in a link.

    Thread Starter sg23838586

    (@sg23838586)

    I am thinking I might have to switch to Jetpack markdown or Jekyll…

    I know WordPress is trying to “aid me” and make it easier, but it is not easier when WordPress just assumes what you want instead of asking what I want.

    Is there any way to style the embeds in a theme so I can remove “embedd style”?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Paste links in Gutenberg without embedding’ is closed to new replies.