WPIntell

Source evidence

How to tweak comments.php?

Custom Comment Form Title · support · 2013-08-26T18:56:00+00:00

mixedsentiment
mediumseverity
0.78relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 30 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
BeeCee resolved
Hi, I use a premium theme from Kriesi with the avia framework. I’m not sure, where and how to add your suggested code in the theme file. I have found in my comments.php this part: if(comments_open()){ echo "<div class='comment_container ".avia_layout_class('entry',false)." units $indent'>"; echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>"; echo "<span class='minitext'>".__('Want to join the discussion? Feel free to contribute!','avia_framework')."</span>"; comment_form(); echo "</div>"; } but my PHP is too bad, so I don’t know how to implement there the example code in the theme’s file. Any help appreciated, thanks! http://wordpress.org/plugins/custom-comment-form-title/ Hi csigncsign, Try swapping out just the code that outputs the <h3> tags, like so: [Irreparably mangled code moderated. Please post code or markup between backticks or use the code button. Or better still – use a pastebin .] Give that a try and see what happens. Apparently wordpress.org didn’t like the code I pasted in. Let me try that again: if(comments_open()){ echo "<div class='comment_container ".avia_layout_class('entry',false)." units $indent'>"; $post_id = get_the_ID(); if ( !empty( $post_id ) ) { $arg = get_post_meta( $post_id, 'ccft_post_comment_title', true ); } if ( empty( $arg ) ) { $ccft_admin_options = get_option( 'custom_comment_form_title' ); $arg = esc_attr( $ccft_admin_options['default_title'] ); } echo '<h3 class='miniheading'>' . $arg . '</h3>'; echo "<span class='minitext'>".__('Want to join the discussion? Feel free to contribute!','avia_framework')."</span>"; comment_form(); echo "</div>"; } I am marking this topic resolved, as I am confident I have provided the correct solution and the topic creator has been unresponsive for 2 months.

Comments

3 shown
Derek Rippe 2013-09-04T15:43:00+00:00

Hi csigncsign, Try swapping out just the code that outputs the <h3> tags, like so: [Irreparably mangled code moderated. Please post code or markup between backticks or use the code button. Or better still – use a pastebin .] Give that a try and see what happens.

Derek Rippe 2013-09-05T15:47:00+00:00

Apparently wordpress.org didn’t like the code I pasted in. Let me try that again: if(comments_open()){ echo "<div class='comment_container ".avia_layout_class('entry',false)." units $indent'>"; $post_id = get_the_ID(); if ( !empty( $post_id ) ) { $arg = get_post_meta( $post_id, 'ccft_post_comment_title', true ); } if ( empty( $arg ) ) { $ccft_admin_options = get_option( 'custom_comment_form_title' ); $arg = esc_attr( $ccft_admin_options['default_title'] ); } echo '<h3 class='miniheading'>' . $arg . '</h3>'; echo "<span class='minitext'>".__('Want to join the discussion? Feel free to contribute!','avia_framework')."</span>"; comment_form(); echo "</div>"; }

Derek Rippe 2013-10-28T16:51:00+00:00

I am marking this topic resolved, as I am confident I have provided the correct solution and the topic creator has been unresponsive for 2 months.