<?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>
									フッターウィジェットエリアのHTMLタグ出力の改善 - 要望				            </title>
            <link>https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Sun, 06 Sep 2026 17:42:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: フッターウィジェットエリアのHTMLタグ出力の改善</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86272</link>
                        <pubDate>Tue, 02 Sep 2025 10:09:34 +0000</pubDate>
                        <description><![CDATA[ご確認いただきありがとうございます。]]></description>
                        <content:encoded><![CDATA[<p>ご確認いただきありがとうございます。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86272</guid>
                    </item>
				                    <item>
                        <title>RE: フッターウィジェットエリアのHTMLタグ出力の改善</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86257</link>
                        <pubDate>Mon, 01 Sep 2025 15:13:39 +0000</pubDate>
                        <description><![CDATA[----------------------------------------------テーマ名：Cocoonバージョン：2.8.7.2カテゴリー数：18タグ数：124ユーザー数：1----------------------------------------------サポートされていることを確認しました。本件をクローズとします。

フッターの中にウィジェットを1、...]]></description>
                        <content:encoded><![CDATA[<p>----------------------------------------------<br />テーマ名：Cocoon<br />バージョン：2.8.7.2<br />カテゴリー数：18<br />タグ数：124<br />ユーザー数：1<br />----------------------------------------------<br />サポートされていることを確認しました。<br />本件をクローズとします。</p>
<hr />
<p>フッターの中にウィジェットを1、2個だけ配置したいと言うケースがあるかと思い、提案させて頂きました。<br /><br /></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86257</guid>
                    </item>
				                    <item>
                        <title>RE: フッターウィジェットエリアのHTMLタグ出力の改善</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86254</link>
                        <pubDate>Mon, 01 Sep 2025 14:54:35 +0000</pubDate>
                        <description><![CDATA[お提案いただきありがとうございます。そこのCSSは変更してもそこまで大きな影響はなさそうなのと、それ以上に変更した方がメリットが大きそうなので、ご提案内容を反映させていただきました]]></description>
                        <content:encoded><![CDATA[<p>お提案いただきありがとうございます。<br />そこのCSSは変更してもそこまで大きな影響はなさそうなのと、それ以上に変更した方がメリットが大きそうなので、ご提案内容を反映させていただきました。<br />https://github.com/xserver-inc/cocoon/commit/3e50d0596f66a6e9b75b143a66808dbce5698f74</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86254</guid>
                    </item>
				                    <item>
                        <title>フッターウィジェットエリアのHTMLタグ出力の改善</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86252</link>
                        <pubDate>Mon, 01 Sep 2025 08:34:19 +0000</pubDate>
                        <description><![CDATA[----------------------------------------------テーマ名：Cocoonバージョン：2.8.7.2カテゴリー数：18タグ数：124ユーザー数：1----------------------------------------------
●現象
図1のように、例えフッター中が空のときでも&lt;div&gt;&lt;/div&gt;...]]></description>
                        <content:encoded><![CDATA[<p>----------------------------------------------<br />テーマ名：Cocoon<br />バージョン：2.8.7.2<br />カテゴリー数：18<br />タグ数：124<br />ユーザー数：1<br />----------------------------------------------</p>
<p><span style="font-size: 14pt"><strong>●現象</strong></span></p>
<p>図1のように、例えフッター中が空のときでも<span style="color: #ff0000">&lt;div&gt;&lt;/div&gt;間に余白が入る</span>。<br />&lt;div&gt;&lt;/div&gt;間に余分な半角スペース、改行を出力したくない。</p>
<hr />
<p><span style="font-size: 14pt"><strong>●原因</strong></span></p>
<p>以下でタグ中に改行などが入るため、改行が入ってしまう。<br /><br />https://github.com/xserver-inc/cocoon/blob/9de25495672df296f5a73e4d4f9f342ec3861110/footer.php#L51-L62</p>
<hr />
<p><span style="font-size: 14pt"><strong>●対策</strong></span></p>
<p>以下のように変更する。<br /><br /></p>
<pre contenteditable="false">             &lt;div class="footer-left"&gt;&lt;?php   if ( function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar('footer-left') )   : else : ?&gt;&lt;?php endif; ?&gt;&lt;/div&gt;
             &lt;div class="footer-center"&gt;&lt;?php if ( function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar('footer-center') ) : else : ?&gt;&lt;?php endif; ?&gt;&lt;/div&gt;
             &lt;div class="footer-right"&gt;&lt;?php  if ( function_exists('dynamic_sidebar') &amp;&amp; dynamic_sidebar('footer-right') )  : else : ?&gt;&lt;?php endif; ?&gt;&lt;/div&gt;
</pre>
<p> </p>
<hr />
<p><span style="font-size: 14pt"><strong>●余談</strong></span></p>
<p>以下ですがwidth:33.33%より<span style="color: #ff0000">flex:1</span>（均等幅）がいいのでは？<br /><br />https://github.com/xserver-inc/cocoon/blob/9de25495672df296f5a73e4d4f9f342ec3861110/style.css#L8345-L8349</p>
<hr />
<p><span style="font-size: 14pt"><strong>●目的</strong></span></p>
<p>ウィジェット「フッター」は<span style="color: #ff0000">3つ固定</span>となっている。<br />このため、フッター中を使わないと、空白があく。</p>
<p>これを改善し、使われているエリアに応じ、例えば2つなら50%、50%としたい。<br />そのため、CSSの:emptyで判断できるようにしたい。<br />現状、改行などが入りemptyと判断されない。<br /><br />footer.phpを改善すると、以下のCSSにすることで、使用しているフッターエリアに応じ、エリア幅を33%、50%、100%と可変とすることができる（図2）。</p>
<p>★footer.phpで未設定の場合、フッター左、中、右、自体を出力しないとすることも可能。<br />ただ、影響がありそうなので、そこまでは希望しない。</p>
<pre contenteditable="false">.footer-widgets &gt; div:empty {
  display: none;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}
</pre>
<p> </p>
<div id="wpfa-43835" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="2025-09-01_16h55_03.png" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1756715659-2025-09-01_16h55_03.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 2025-09-01_16h55_03.png</a></div>
<div id="wpfa-43836" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="2025-09-01_17h19_50.png" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1756715673-2025-09-01_17h19_50.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 2025-09-01_17h19_50.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%83%95%e3%83%83%e3%82%bf%e3%83%bc%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%82%a8%e3%83%aa%e3%82%a2%e3%81%aehtml%e3%82%bf%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e6%94%b9%e5%96%84/#post-86252</guid>
                    </item>
							        </channel>
        </rss>
		