• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Removing Website from Comments

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Removing Website from Comments

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 12 years, 2 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 2, 2013 at 3:11 pm #17413
    incomeclub
    Member

    Is there a way of removing the website field when someone is leaving a comment?

     

    February 2, 2013 at 3:32 pm #17431
    incomeclub
    Member

    I have found a solution with this code added to the functions.php file.

     

    add_filter( 'genesis_comment_form_args', 'url_filtered' );
    add_filter( 'comment_form_default_fields', 'url_filtered' );
    function url_filtered( $fields ) {

    if ( isset( $fields['url'] ) )
    unset( $fields['url'] );

    if ( isset( $fields['fields']['url'] ) )
    unset( $fields['fields']['url'] );

    return $fields;
    }

    March 30, 2013 at 10:04 am #32087
    pluzito
    Participant

    I read that there is a way to do it from the CSS but I can't make it work :S
    What you have to write in the stylesheet is:

    .comment-form-url {display: none;}

    Anyone who get it work?

    March 30, 2013 at 12:47 pm #32117
    Brad Dalton
    Participant

    https://gist.github.com/braddalton/5246988


    Tutorials for StudioPress Themes.

    March 30, 2013 at 3:42 pm #32136
    pluzito
    Participant

    Perfect, working like a charm! Thanks a lot. My question is, adding code to the functions.php don't make the site run slower than adding some modifications (when possible) to the CSS?

    March 31, 2013 at 3:34 am #32211
    Brad Dalton
    Participant

    In my opnion, It depends on what the code does and how effecient it is.

    No doubt poor coding can slow down a site.

    Moved a site to Genesis recently and recoded it reducing the database from over 30 mg to 3 mg and it loads 5 times faster.

    Another example of this is PHP and CSS coding best practices.

    Someone contacted me recently about thier site which takes 8 seconds to load and contains only 120 posts hosted on good managed servers. The problem is they have hacked the core WordPres files, the parent themes files and many of the plugin files and cannot update without a major recoding effort.

    When you use Genesis, you're always advised to use a child theme for custom coding rather than modify the parent themes template files. This way you can painlessly update the parent theme which is becoming more and more effecient.

    My own sites home page loads in about a second which wasn't the case when using another theme but the server configuration and other factors can also make a huge difference.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble