• 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

Customize output of comment form fields

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 › Customize output of comment form fields

This topic is: not resolved

Tagged: comment form

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 5 months ago by michaeloeser.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 10, 2015 at 9:46 am #173441
    michaeloeser
    Member

    I need to customize the output (exactly the labels) of the comment form fields and I´m getting nuts with it.

    This is what I have found and adopted and it works:

    // Customize The Comment Form
    add_filter( 'comment_form_defaults', 'alfons_custom_comment_form' );
    function alfons_custom_comment_form($fields) {
        $fields['comment_notes_before'] = '<p>*Die hinterlassenen Nachrichten sind ausschlie&szlig;lich Herrn Alfons Horn zug&auml;nglich.</p><p><small>Mit * markierte Felder m&uuml;ssen ausgef&uuml;llt sein.</small></p>'; 
        $fields['title_reply'] = 'Ihre Nachricht an Alfons Horn';
        $fields['comment_field'] = '<p class="comment-form-comment"><label for="comment">Ihre Nachricht *</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>';  
    	$fields['label_submit'] = 'Nachricht senden';
        $fields['comment_notes_after'] = '';
    	
        return $fields;
    } 

    I also want to rename the "Name" to "Name(s)" but that doesn´t work.
    And I want to remove the URL field (that works) and replace it by a simple text field for "Company"

    Any help is greatly appreciated.

    December 16, 2015 at 11:37 am #173937
    mairagall
    Member

    I think this will help you to edit the labels and placeholders, I tried it in my Sample theme and it worked ok.

    Customize Comment Form Place Holder Input Text Fields & Labels

    December 17, 2015 at 2:18 am #174024
    michaeloeser
    Member

    Thanks. I will check it out.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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