<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									wp_footer()の挿入個所について - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Sun, 06 Sep 2026 17:59:22 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: wp_footer()の挿入個所について</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77510</link>
                        <pubDate>Thu, 29 Feb 2024 22:20:25 +0000</pubDate>
                        <description><![CDATA[ありがとうございました。とりあえず、code_minify_call_backでやってみます。]]></description>
                        <content:encoded><![CDATA[<p>ありがとうございました。とりあえず、<span>code_minify_call_backでやってみます。</span></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>nbyk</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77510</guid>
                    </item>
				                    <item>
                        <title>RE: wp_footer()の挿入個所について</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77495</link>
                        <pubDate>Thu, 29 Feb 2024 05:47:27 +0000</pubDate>
                        <description><![CDATA[&lt;body&gt; の直接の子要素でなければいけない理由は何でしょうか？
理由によっては、footer.php の 106 行目 にフックを追加する要望を出すのがいいかもしれません。]]></description>
                        <content:encoded><![CDATA[<p>&lt;body&gt; の直接の子要素でなければいけない理由は何でしょうか？</p>
<p>理由によっては、f<a href="https://github.com/xserver-inc/cocoon/blob/master/footer.php#L106" target="_blank" rel="noopener">ooter.php の 106 行目</a> にフックを追加する要望を出すのがいいかもしれません。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77495</guid>
                    </item>
				                    <item>
                        <title>RE: wp_footer()の挿入個所について</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77494</link>
                        <pubDate>Thu, 29 Feb 2024 05:27:24 +0000</pubDate>
                        <description><![CDATA[●回答
Cocoonには、HTML出力直前に、code_minify_call_backと言うフックがあります。これを利用して、HTMLを書き換え、&lt;/body&gt;の前に文字列を追加します。以下に例を示します。
add_filter( &#039;code_minify_call_back&#039;, function($content) {
  $add = &#039;&lt;div&amp;...]]></description>
                        <content:encoded><![CDATA[<p><strong>●回答</strong></p>
<p>Cocoonには、HTML出力直前に、<span><span style="color: #ff0000">code_minify_call_back</span>と言うフックがあります。<br />これを利用して、HTMLを書き換え、&lt;/body&gt;の前に文字列を追加します。<br />以下に例を示します。</span></p>
<pre contenteditable="false">add_filter( 'code_minify_call_back', function($content) {
  $add = '&lt;div&gt;xxxxx&lt;/div&gt;&lt;/body&gt;';
  $content = str_replace('&lt;/body&gt;', $add, $content);

  return $content;
});</pre>
<div id="wpfa-38027" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="2024-02-29_14h24_06.png" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1709184444-2024-02-29_14h24_06.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 2024-02-29_14h24_06.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77494</guid>
                    </item>
				                    <item>
                        <title>wp_footer()の挿入個所について</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77493</link>
                        <pubDate>Thu, 29 Feb 2024 05:07:11 +0000</pubDate>
                        <description><![CDATA[functions.php内で「add_action(&#039;wp_footer&#039;,&#039;（コードを出力する関数など）&#039;);」などと記述した場合、「&lt;/body&gt;」の前では無く「&lt;/div&gt;&lt;!-- #container --&gt;」の前に出力されるのですが、これを「&lt;/div&gt;&lt;!-- #container --&gt;」の後かつ「&amp;l...]]></description>
                        <content:encoded><![CDATA[<p>functions.php内で「add_action('wp_footer','（コードを出力する関数など）');」などと記述した場合、「<span>&lt;/body&gt;」の前では無く「&lt;/div&gt;&lt;!-- #container --&gt;」の前に出力されるのですが、これを「&lt;/div&gt;&lt;!-- #container --&gt;」の後かつ「&lt;/body&gt;」の前に出力するようにはできないものでしょうか？</span></p>
<pre contenteditable="false">&lt;/div&gt;&lt;!-- #container --&gt;

（ここに出力したい）

&lt;/body&gt;</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>nbyk</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/wp_footer%e3%81%ae%e6%8c%bf%e5%85%a5%e5%80%8b%e6%89%80%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-77493</guid>
                    </item>
							        </channel>
        </rss>
		