Add an action button “Answer a question”

4.77K viewsWordPress
0

How can I Add an action button for getting questions answered by other users.I would like to add a button  “Answer Questions” .In my experience No users are responding to the questions posted by other users, hope an action button will help me to improve this. My forum is http://tallygame.com/forum/.

1

If you want to add a button to the question box like the ‘add a comment’ button you can utilize the ap_post_footer action from a child theme:

 

add_action( ‘ap_post_footer’, ‘mmx_add_answer_button’ );
function mmx_add_answer_button(){
echo ‘<a href=”#answer-form-c” class=”ap-btn-newanswer ap-btn ap-btn-small”>’ . esc_attr__( ‘Add an answer’, ‘anspress-question-answer’ ) . ‘</a>’;
}

You are viewing 1 out of 2 answers, click here to view all answers.