# Raptive広告の問題

**URL:** <https://meta.discourse.org/t/issues-with-raptive-ads/276128>\
**Category:** WordPress\
**Created:** [2023 年 8 月 22 日午前 3:38 UTC](https://meta.discourse.org/t/issues-with-raptive-ads/276128 "2023-08-22T03:38:55Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![MiggityMac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miggitymac/32/156658_2.png) [@MiggityMac](https://meta.discourse.org/u/MiggityMac)\
**Post date:** [2023 年 8 月 26 日午後 5:50 UTC](https://meta.discourse.org/t/issues-with-raptive-ads/276128/18 "2023-08-26T17:50:43Z")

</div>

@angus - サイトの更新、テーマの更新、プラグインの整理などを行いました。問題を発見しましたが、見つけるのが非常に困難でした。使用しているテーマ（大幅にカスタマイズされた Zox News テーマ）で、親テーマのアップデートがあり、それが他のプラグインと一緒に更新されてしまったようです。

子テーマがそれをうまく処理できませんでした。Zox News テーマには Disqus 統合用の場所があり、標準の WP コメント HTML 構造を完全にオーバーライドします。親テーマを編集して、コメントボタンの表示を無効にし、WP コメント構造（もはや存在しなかった）を探していた [WP Discourse](https://github.com/discourse/wp-discourse) コードインジェクションを事実上ハイジャックしないようにする必要がありました。

バックエンドではまだ少し散らかっていますが、週末にかけて整理する予定です。

問題を引き起こしたコードの一部を以下に示します。

```plaintext
    <!-- DELETE THIS from post-single.php in parent theme -->
	<!-- <div id="mvp-comments-button" class="left relative mvp-com-click">
	    <span class="mvp-comment-but-text"><?php comments_number(__( 'Click to comment', 'zox-news'), esc_html__('1 Comment', 'zox-news'), esc_html__('% Comments', 'zox-news'));?></span>
	</div>-->
    <!--mvp-comments-button-->

```

コメントをオフまたはオンにして、約 5 つの異なる投稿でテストしました。今のところ、問題ありません。週末/週を通してうまくいけば、解決策としてマークします。

皆さん、本当にありがとうございました!!!

---

_[View the full topic](https://meta.discourse.org/t/issues-with-raptive-ads/276128)._
