• 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

Comment Box … Add note

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 › General Discussion › Comment Box … Add note

This topic is: not resolved

Tagged: adorable, Comment Box

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 1 month ago by Tony @ AlphaBlossom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 6, 2013 at 10:12 am #18456
    lspadilla
    Participant

    Site:  simplyfreshvintage.com
    Theme:  Adorable

    I'd like to add a permanent "note" in the comments area under the "Please Join The Conversation" header.

    I tried using the code from this post:  http://www.studiopress.community/topic/comment-policy-box/, changing it as follows below.  When I tried to save the change, it opened a server error message page.

    I'm very new to css and I'm waddling my way around.  Any help would be appreciated!

    Thank you 🙂
    Lani

     

    /** Add a comment policy box */
    add_filter('genesis_comment_form_args', 'custom_comment_form_args');
    function custom_comment_form_args($args) {
    $args['comment_notes_before'] = '<p class="comment-policy">' . __( '<small>I love to read your comments and will respond as soon as I can.  If you need a quicker response, please feel free to <a href="mailto:[email protected]?subject=Blog Comment">email me.</a></small>' ) . ( $req ? $required_text : '' ) . '</p>';
    return $args;
    }

    February 6, 2013 at 10:45 am #18463
    Anita
    Keymaster

    You have to make sure when you copy and paste that all of the quotes (") and the apostrophes (') and the correct ones. Use Notepad or Notepad++ and just go through there and make sure they are correct.


    Love coffee, chocolate and my Bella!

    February 6, 2013 at 12:56 pm #18474
    lspadilla
    Participant

    I went back and used the code snippet from SP, which produced the result found here:

    http://www.simplyfreshvintage.com/2013/02/06/test-post-1/

    1) How do I move the comment-policy note to below the "Join the Conversation" title instead of above it.

    2) If I want to link the email addy, do I change that line of code to read as follows:

    <p class="comment-policy"><small>I love to read your comments and will reply shortly.  If you need a quicker response, please <a href="mailto:[email protected]?subject=Blog Comment">email me.</a></small></p>

    Thank you so much!  I'm very appreciative 🙂

    Lani

     

     

     

     

    February 6, 2013 at 1:34 pm #18481
    Anita
    Keymaster

    I don't have Adorable so I cannot look at the files. For the "Join the Conversation" - open up your Functions.php file and see if you see anything titled that - if so, change it there. If you don't - maybe add this to the bottom of the file changing "Leave a Comment" to whatever you want. See if that works.

    /** Modify the speak your mind text */
    add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
    function custom_comment_form_args($args) {
        $args['title_reply'] = 'Leave a Comment';
        return $args;
    }

    As for the email address, yes - that's correct.


    Love coffee, chocolate and my Bella!

    February 7, 2013 at 11:09 am #18686
    lspadilla
    Participant

     

    That snippet allows me to change the text of the title, but I've already done that.

    I'm trying to move the "comment policy box" snippet to show below the "Join the Conversation" , not above it.  Right now, it shows above it, as shown here: http://www.simplyfreshvintage.com/2013/02/06/test-post-1/

     

    CHILD THEME:  ADORABLE

    Thank you!

     

     

    February 7, 2013 at 12:35 pm #18708
    Tony @ AlphaBlossom
    Member

    You can try something like this in your child-theme functions.php file:


    /** Add text below comment title */
    add_action( 'comment_form_top', 'custom_comment_form_after_title();
    function custom_comment_form_after_title() {
    echo "your text here";
    }

    I haven't tested it throughly, so please test it but it should do what you need.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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

© 2023 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