Close Menu
    Facebook X (Twitter) Instagram
    Prajwal.orgPrajwal.org
    • Home
    • SCCM

      SCCM 2503 Upgrade New Features and Hotfixes

      April 30, 2025

      Create a Device Collection for SCCM 2409 Clients

      February 27, 2025

      Device Collection for SCCM 2403 Clients

      January 22, 2025

      SCCM 2403 Hotfixes, Upgrade and New Features

      January 21, 2025

      ConfigMgr 2401 Technical Preview Released

      January 22, 2025
    • Intune

      New Features in Intune 2502 release (February 2025)

      February 27, 2025

      Intune Service Release 2406 New Features (June 2024)

      June 23, 2024

      Microsoft Intune 2405 New Features (May 2024)

      May 29, 2024

      How to Disable Android Enterprise system app in Intune

      May 22, 2024

      Intune ends support for Android device administrator

      January 22, 2025
    • Windows 11

      How to Install WSUS Console on Windows 11

      January 22, 2025

      How to enable memory integrity using Group Policy

      January 22, 2025

      Uninstall Mail and Calendar Apps using PowerShell

      January 22, 2025

      How to Create Batch File to Delete Temp Files

      January 22, 2025

      How to Change RDP Port using PowerShell

      January 22, 2025
    • Contact
    Prajwal.orgPrajwal.org
    Home » Remove Website URL From WordPress Comments
    WordPress

    Remove Website URL From WordPress Comments

    February 14, 20242 Views

    Are you looking to remove website URL from WordPress comments ?. I assume it’s a Yes. When you first install WordPress, you will notice WordPress comment form at the end of the post. There is no built-in option to hide website URL from WordPress comments.

    While some people prefer to show website URL field, some won’t because it’s a big advantage to spammers. Many spammers use WordPress comment to get a link back to their website. You can say it is the most popular way to generate spam. That’s why most of the third-party comment plugins provide an option to hide website URL.

    When you visit any blog and comment and add a URL, the link will count but it will be nofollow. However it’s a low-quality backlink and you must understand that it’s actually not going to contribute a thing to your search performance. But the spammers still tend to use this technique and comment a nice message and add their website URL.

    When you install a WordPress theme, some themes provide the option to hide the website URL from comments. However with most of the themes this isn’t an option. Hence one has to use a code to hide the website URL. I will show a simple way to achieve this.

    Remove Website URL From WordPress Comments

    I assume your are using a WordPress theme. To hide URL field from the comments form, you can insert a code and add it to your functions.php file.

    Remove Website URL From WordPress Comments

    To hide or remove URL field from the WordPress comments form, simply add the following code to your functions.php file.

    • Login to WordPress Dashboard.
    • Go to Appearance > Theme Editor.
    • Select Theme Functions (functions.php) file.
    • Add the following function and click Update File.
    // Remove Website URL From WordPress Comments
    
    function wp_disable_comment_url($fields) { 
    unset($fields['url']);
    return $fields;
    }
    add_filter('comment_form_default_fields','wp_disable_comment_url');

    If you are using a caching plugin, clear the cache. Here is the result after adding this code. Notice the Website URL is now hidden. Hope this short tutorial helps !

    Remove Website URL From WordPress Comments

    In future if you want to show the website URL field, go to functions.php and delete the code that you added.

    Share. Facebook Twitter Pinterest LinkedIn Email
    Previous ArticleHow to Install Windows ADK for SCCM
    Next Article How To Add Google Analytics To GeneratePress

    Related Posts

    WordPress

    How To Add Google Analytics To GeneratePress

    February 14, 2024
    Latest Guides

    SCCM 2503 Upgrade New Features and Hotfixes

    New Features in Intune 2502 release (February 2025)

    Create a Device Collection for SCCM 2409 Clients

    Intune Service Release 2406 New Features (June 2024)

    Updated:June 23, 2024
    Popular Guides

    Uninstall Snipping Tool using PowerShell

    Updated:January 22, 2025

    How to Manually Install SCCM Client Agent

    Updated:January 22, 2025

    How to Create Batch File to Delete Temp Files

    Updated:January 22, 2025

    Disable Driver Signature Enforcement using CMD Prompt

    Updated:January 22, 2025
    Trending Posts

    List of SCCM Software Updates Log Files

    Updated:January 22, 2025

    SCCM 2211 Upgrade, Hotfixes, New Features and Improvements

    Updated:January 21, 2025

    How to Re-Distribute Failed Packages in SCCM

    Updated:January 22, 2025

    Use CMPivot Query to Find RDP Port Number

    Updated:January 22, 2025
    © 2025 Prajwal.org | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.