I want plaintext URLs

  • Unknown's avatar

    I am trying to list some URLs as plaintext (i.e. not auolinking) on a page on my blog, but nothing I do seems to work. Using does not work, pasting as plainttext function does not work. When I use the HTML view there are no tags to remove. This happens on both new and classic editor. Please help!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Let’s ask Staff to assist you with sorting this out. I will type modlook into the sidebar tags on this thread for Staff help. How do I get a Moderator/Staff reply for my question? https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question Please subscribe to this thread so you are notified when they respond and be patient while waiting. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it.

  • Hi there,

    The editor automatically hyperlinks any links one enters. This is a core WordPress feature, so it happens on self-hosted sites as well.

    If you wrap the link in <pre></pre> tags in the HTML editor it should not be hyperlinked. You can also do this in the visual editor by highlighting the link and selecting the Preformatted option from the formatting menu.

  • Unknown's avatar

    Thanks! But when I do that the URL is no long in-line with the rest of the text, but in its own grey box on a separate line! I know I have seen other wordpress sites with plaintext URLs that just function as regular text including formatting (though looking at page source doesn’t reveal how they accomplished this).

  • Wrapping them in pre-tags is the only option I can find. On self-hosted WordPress sites you can add a line to the functions.php file to disable this feature, but that’s not possible on WordPress.com.

    If you know of any WordPress.com where URLs aren’t hyperlinked, please give me a link and I can try to figure out how they did it, but chances are you saw this on a self-hosted site.

    Is there a specific reason you don’t want URLs hyperlinked? Maybe there is another way to reach your goals. If, for example, you don’t want to have backlinks to other sites, you can add the URLs as actual hyperlinks and then add the rel=”nofollow” attribute to the opening a-tag. And if it’s the way hyperlinks are styled differently than regular text, we might be able to override that with some inline CSS.

  • The topic ‘I want plaintext URLs’ is closed to new replies.