Title: Adding theme support
Last modified: August 21, 2016

---

# Adding theme support

 *  Resolved [trinzia](https://wordpress.org/support/users/trinzia/)
 * (@trinzia)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-theme-support/)
 * My comments are structured as follows, in comments.php:
 *     ```
       <?php foreach($comments as $comment) : ?>
       	//lots of code here
       	<?php comment_text() ?>
       	//lots of code here
               <?php do_action( 'comment_report_abuse_link' ); ?>
         <?php endforeach; ?>
       ```
   
 * (I don’t actually have a reply link at all, because it’s a very customized theme.)
 * I get the message “Wrong usage of print_flagging_link().”
    When I added the rest
   of the code to functions.php, I just got the message twice instead of once.
 * I’m probably also going to have to customize the html of the link.
    Is there 
   another way to construct the Flag link?
 * Thanks!
 * [http://wordpress.org/plugins/safe-report-comments/](http://wordpress.org/plugins/safe-report-comments/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [trinzia](https://wordpress.org/support/users/trinzia/)
 * (@trinzia)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-theme-support/#post-4230186)
 * Resolved. In comments.php, instead of do_action, used:
 *     ```
       <?php
       echo $safe_report_comments->get_flagging_link( $comment_id, '', 'Report comment' );
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding theme support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/safe-report-comments.svg)
 * [Safe Report Comments](https://wordpress.org/plugins/safe-report-comments/)
 * [Support Threads](https://wordpress.org/support/plugin/safe-report-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-report-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-report-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-report-comments/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [trinzia](https://wordpress.org/support/users/trinzia/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/adding-theme-support/#post-4230186)
 * Status: resolved