• Resolved techmix

    (@techmix)


    I need to exclude some pages so that user can copy that pages article or information without adding link.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Amit Sonkhiya

    (@amitaits)

    @techmix

    Unfortunately, the plugin doesn’t have the option to exclude pages to allow copying. What can I offer is let you manually code in the plugin file.

    Open the settings.php file from the plugin directory.
    (wp-content -> add-link-to-copied-text -> settings.php)

    You can put everything inside from the function add_script() within an if condition as follow:

    global $post;   
    $page = $post->ID();
    if($page && in_array($page, array(1, 5, 20))) {
    
    /*The existing code inside the add_script function() */
    
    }

    Here you also need to replace 1, 5, 20 etc. with your Page/Post Ids you wish to let users copy content from.

    If you face any issue, you can contact us on the website https://www.astech.solutions.

    • This reply was modified 5 years, 8 months ago by Amit Sonkhiya.
    Thread Starter techmix

    (@techmix)

    Thanks for the help. This function is working fine

    Plugin Author Amit Sonkhiya

    (@amitaits)

    Hello @techmix

    I’ve emailed you the updated function. Check the same in your email’s spam folders as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do i exclude some pages from Link Copy’ is closed to new replies.