# בעיות בהגדרת תגובות ajax

**URL:** <https://meta.discourse.org/t/issues-with-setting-up-ajax-comments/224455>\
**Category:** WordPress\
**Created:** [16 באפריל,‏ 2022,‏ 12:26am UTC](https://meta.discourse.org/t/issues-with-setting-up-ajax-comments/224455 "2022-04-16T00:26:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)\
**Post date:** [20 באפריל,‏ 2022,‏ 12:53am UTC](https://meta.discourse.org/t/issues-with-setting-up-ajax-comments/224455/8 "2022-04-20T00:53:50Z")

</div>

I was able to style comments. Very basic was my styling lol… but an improvement.

The only thing left to do is to remove the list of participants at the bottom of WP- Discourse imported comment section.

I can’t use this code because it throws an error due to using “self”. Is they are a workaround?

```plaintext
ob_start();
?>
<div id="comments" class="comments-area discourse-comments-area">
<div class="comments-title-wrap">
<h2 class="comments-title discourse-comments-title"><?php echo esc_html( self::get_text_options( 'notable-replies-text' ) ); ?></h2>
</div>
<ol class="comment-list">{comments}</ol>
<div class="respond comment-respond">
<h3 id="reply-title" class="comment-reply-title">
<?php echo esc_html( self::get_text_options( 'continue-discussion-text' ) . ' ' ); ?>
<?php self::discourse_topic_link( self::new_tab() ); ?>
</h3>
<p class="more-replies">{more_replies}</p>
</div>
</div>
<?php
$output = ob_get_clean();

```

I removed these lines:

```plaintext
<div class="comment-reply-title">
<h4 class="discourse-participants"><?php echo esc_html( self::get_text_options( 'participants-text' ) ); ?></h4>
<p>{participants}</p>
</div>

```

However, the “self” syntax error I’m not sure how to solve. Especially these lines:

```plaintext
<?php echo esc_html( self::get_text_options( 'continue-discussion-text' ) . ' ' ); ?>
<?php self::discourse_topic_link( self::new_tab() ); ?>

```

---

_[View the full topic](https://meta.discourse.org/t/issues-with-setting-up-ajax-comments/224455)._
