Skip to content
WpConsults Logo- AI SEO Agency for eCommerce Store
Now Covering GEO
  • Services
  • About
  • en_USENExpand
    • de_DEDE
    • fr_CAFR
Linkedin
Book a Meeting
WpConsults Logo- AI SEO Agency for eCommerce Store
Linkedin

Home - Blog and Tutorial - WordPress Tips & Tutorials

Add ‘Read more link to copied text in WordPress

By Abdullah Nouman Hours Updated -December 31, 2023

Adding a Read more link to copied text is a great way to promote your website and increase traffic. This is especially useful for blog posts and other long-form content.

When someone copies and pastes your text, the link will be included along with it, encouraging them to visit your site to read the full article.

In this article, we’ll explore the methods behind this technique and demonstrate how to implement it on your own website.

Read more link to copied text

Recently, you may have noticed a “Read more” link appearing when you copy and paste text from certain websites, such as eHow, TechCrunch, and The Huffington Post.

Methods of adding a Read more link to copied text

Two main methods for adding a “Read more link” to copied text in WordPress

  • WordPress Plugins: This is the easiest method, as it does not require any coding knowledge.
  • Custom Code: If you are comfortable with coding, you can add a “Read more link” to copied text by manually adding some code to your WordPress theme. This method gives you more control over the appearance and behavior of the link.

Method 1: Using WordPress Plugins

There are two popular plugins available that can automatically add a “Read more link” to copied text.

Read more link to copied text plugin

Once you have installed and activated one of these plugins, you do not need to do anything else. The plugin will automatically add a “Read more link” to copied text on all of your posts and pages.

  • Plugin 1: Add Link on Copied Text By dmitrylitvinov

This plugin will add the following sentence after copied text.“

Result after using Add Link on Copied Text By dmitrylitvinov plugin
  • Plugin 2: Add Link to Copied Text By AS Tech Solutions

This plugin has more advance option than the former. This one is optimized both for pasting in rich editor (ex web editor, doc) and plain editor (ex: social media).

After activating it will start working. However, you can change few things. From Dashboard > Settings > Add link you can customize it.

Plugin setup: Add Link to Copied Text By AS Tech Solutions

Normally for rich editor it will look like this:

Result after using Add Link to Copied Text By AS Tech Solutions plugin
Example: Inline link in url recommended for all usage including social media share.

However, if you enable the “Use page/post title as link text” it will look like below in rich editors.

I personally prefer it. But remember, this option is not recommended even applicable if you intend for social media. Because in social media the inline link will not work.

Result after using Add Link to Copied Text By AS Tech Solutions plugin
Example: Inline link intitle better for copy pasting in website

And for plain editors such as social media it will look like this:

Result after using Add Link to Copied Text By AS Tech Solutions plugin
Example: Explicit link better for copy pasting in social media

Method 2: Using Custom Code

If you are comfortable with coding, you can add a “Read more link” to copied text by manually adding some code to your WordPress theme. This method is more complex than using a plugin, but it gives you more control over the appearance and behavior of the link.

Here you have two option to choose based on your requirement.

✴️ Add Inline Link to the copy text

Add Inline link in title when you paste in any rich editor. [ Read More + Linked title ] – Best for rich text editor like website editor and any document editor. Not Suitable for social media share.

Add Inline Link to the copy text
Example: Inline link intitle better for copy pasting in website

To add a “Read more link” to copied text using custom code, you will need to add the following code to your theme’s functions.php file:

Caution: We recommend adding the following code to your child theme’s functions.php file. Modifying the parent theme’s functions.php file directly may result in lost customizations after theme updates.

If you want to create child theme you can follow this instruction – How to create a WordPress Child Theme

// Add Links in Copycats texts
function add_copyright_text_script() {
    wp_enqueue_script('clipboard-js', 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js', array(), '2.0.8', true);
}

add_action('wp_enqueue_scripts', 'add_copyright_text_script');

function add_copyright_text() {
    if (is_single()) {
        ?>
        <script type="text/javascript">
            function convertHtmlEntitiesToText(html) {
                var doc = new DOMParser().parseFromString(html, 'text/html');
                return doc.body.textContent || "";
            }

            function addLink() {
                if (window.getSelection().containsNode(document.getElementsByClassName('entry-content')[0], true)) {
                    const bodyElement = document.getElementsByTagName('body')[0];
                    const selection = window.getSelection();
                    const pageLink = "Read more: <a href='<?php echo esc_url(get_permalink()); ?>'><?php the_title(); ?></a>";
                    let copyText = selection + pageLink;

                    // Check if the platform supports inline links
                    if (!document.queryCommandSupported('copy')) {
                        // If not, use the explicit link with URL encoding
                        const permalink = encodeURIComponent(esc_url(get_permalink()));
                        const explicitLink = "Read more: <?php the_title(); ?> - " + permalink;
                        copyText = selection + convertHtmlEntitiesToText(explicitLink);
                    }

                    // Copy the formatted text to the clipboard using Clipboard.js
                    const clipboard = new ClipboardJS('.entry-content', {
                        text: function () {
                            return copyText;
                        }
                    });

                    clipboard.on('success', function (e) {
                        e.clearSelection();
                        alert('Copied to clipboard: ' + e.text);
                    });

                    clipboard.on('error', function (e) {
                        alert('Error copying to clipboard. Please try again.');
                    });
                }
            }

            document.oncopy = addLink;
        </script>
        <?php
    }
}

add_action('wp_head', 'add_copyright_text');
PHP

This code will add a “Continue reading on [post title]” link to the end of any text that is copied from a single post page.

✴️ Add the explicit link to the copy text

Add URL after read more. [ Read More + URL ] – for all usage including social media share.

Example: Explicit link better for copy pasting in social media

When copying content and pasting it into social media platforms, the behavior may vary depending on the platform and its support for formatting. Unfortunately, some social media platforms may not preserve HTML links when pasting. To address this you need to add explicit link.

To add a “Read more link” to copied text using custom code, you will need to add the following code to your theme’s functions.php file:

function add_copyright_text() {
    if (is_single()) { ?>
 
<script type='text/javascript'>
function addLink() {
    if (
window.getSelection().containsNode(
document.getElementsByClassName('entry-content')[0], true)) {
    var body_element = document.getElementsByTagName('body')[0];
    var selection;
    selection = window.getSelection();
    var oldselection = selection
    var pagelink = "<br /><br /> Read more: <?php the_title(); ?> <a href='<?php echo wp_get_shortlink(get_the_ID()); ?>'><?php echo wp_get_shortlink(get_the_ID()); ?></a>"; //Change this if you like
    var copy_text = selection + pagelink;
    var new_div = document.createElement('div');
    new_div.style.left='-99999px';
    new_div.style.position='absolute';
 
    body_element.appendChild(new_div );
    new_div.innerHTML = copy_text ;
    selection.selectAllChildren(new_div );
    window.setTimeout(function() {
        body_element.removeChild(new_div );
    },0);
}
}
 
 
document.oncopy = addLink;
</script>
 
<?php
}
}
 
add_action( 'wp_head', 'add_copyright_text');
PHP

This code will add a “Read more [post url]” link to the end of any text that is copied from a single post page.

Additional Considerations

  • Copyright: When adding a “Read more link” to copied text, it is important to include a copyright notice. This will help to protect your copyright and ensure that your work is properly attributed.
  • Appearance: You can customize the appearance of the “Read more link” by adding CSS to your theme. This will allow you to change the font, color, and size of the link.
  • Performance: Adding a “Read more link” to copied text can have a slight impact on page load times. If you are concerned about performance, you may want to consider using a plugin that only adds the link to single post pages.

Reasons to Add “Read more link” to Copied Text

Adding a “Read more link” to copied text offers several advantages, this is actually a clever marketing tactic that can benefit both website owners and content creators.

  • Increased Website Traffic: These links act as miniature billboards for your website, enticing readers to embark on a journey to your site to explore the full article, leading to a substantial increase in website traffic and engagement.
  • Brand Awareness and Promotion: Each time someone copies and pastes your content, they inadvertently become a brand ambassador, spreading the word about your website and expanding your reach to a wider audience, enhancing brand visibility and recognition.
  • Content Attribution and Copyright Protection: These links ensure proper attribution of your content, acting as a vigilant copyright protector, safeguarding your intellectual property and giving you due credit for your hard work.
  • Improved Search Engine Rankings (SEO): By driving traffic to your site, these links become your SEO allies, boosting your search engine rankings, making it easier for potential readers to discover your valuable content amidst the vast sea of online information.
  • Enhanced Readability and User Experience: They serve as a bridge between copied text and the original article, providing context and enhancing readability, making it easier for readers to grasp the bigger picture and appreciate the depth of your expertise.
  • Content Curator: These links act as content curators, guiding users to related material on your site, keeping them engaged and immersed in your content ecosystem, increasing the likelihood of conversions and fostering brand loyalty.
  • Encouraging Social Sharing:: They empower your content to transcend the boundaries of your website, becoming social sharing catalysts, facilitating the spread of your content across various social media platforms, amplifying your reach and expanding your audience base.
  • Measuring Content Performance: By tracking clicks on these links, you gain valuable insights into the effectiveness of your content, empowering you to make data-driven decisions and tailor your strategy accordingly, ensuring that your content consistently hits the mark.
  • Showcasing Expertise and Authority: Seeing a “Read more” link from a reputable source reinforces your authority and expertise in the eyes of readers, establishing you as a trusted voice in your field and elevating your brand’s reputation.
  • Nurturing Relationships and Engagement: These links invite users to embark on a deeper exploration of your site, fostering a meaningful connection with your brand and encouraging continued interaction, nurturing a loyal readership and fostering long-lasting relationships.

Conclusion

Adding a “Read more link” to copied text is a simple yet effective way to promote your website and increase traffic. By following the instructions in this tutorial, you can easily add a “Read more link” to your WordPress posts and pages.


Latest Posts

    Share this:

    • Post

    Like this:

    Like Loading...

    Related


    Discover more from WpConsults

    Subscribe to get the latest posts sent to your email.

    Post Tags: #new-features#without plugin series
    Abdullah Nouman

    eCommerce SEO and GEO Strategist | Founder, WpConsults. I help online stores and businesses rank on Google and get recommended by ChatGPT, Perplexity, Copilot, Claude and AI Overviews. Most of the businesses I've worked with are in the USA and UK; and a handful of them are in Canada, Germany and Australia.

    X

    Free WordPress & SEO Tips!

    Table of Contents
    • Methods of adding a Read more link to copied text
    • Additional Considerations
    • Reasons to Add "Read more link" to Copied Text
    • Conclusion
    • Share using Native toolsShareCopied to clipboard
    WpConsults Logo- AI SEO Agency for eCommerce Store

    WpConsults helps eCommerce brands rank on Google, get cited by AI, and grow through performance ads; all in one focused campaign.

    LinkedIn Profile

    Services

    • SEO + GEO Campaigns
    • GEO/AEO/AIO
    • SEO Audits (Postpaid)
    • eCommerce SEO
    • Paid SEO Consultation
    • Local SEO

    Company

    • Services
    • Pricing
    • SEO & GEO Portfolios
    • About
    • Work With Us
    • Testimonials

    Resources

    • FAQs
    • Blog and Tutorial
    • Most Popular Posts

    © 2026 WpConsults LLC.

    • Privacy Policy
    • Site Disclosure
    • Intellectual Property Policy
    • Editorial Policy
    • Complaint Policy
    • Refund Policy
    • Cookie Policy
    • Modern Slavery Statement
    • Data processing (DPA)
    • CCPA / CPRA Notice
    • Accessibility
    • Terms & Conditions
    • Code of Ethics
    • Workplace Policy
    Scroll to top

    Now Covering GEO
    • Services
    • Pricing
    • About
    • Blog
    • Work With Us
    • en_USEN
      • de_DEDE
      • fr_CAFR
    %d