<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cocoon | Iの喜劇</title>
	<atom:link href="https://inokigeki.com/tag/cocoon/feed" rel="self" type="application/rss+xml" />
	<link>https://inokigeki.com</link>
	<description>芋娘の日記</description>
	<lastBuildDate>Thu, 26 Feb 2026 14:41:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://inokigeki.com/wp-content/uploads/cropped-favicon-3-32x32.png</url>
	<title>Cocoon | Iの喜劇</title>
	<link>https://inokigeki.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://inokigeki.com/tag/cocoon/feed"/>
<site xmlns="com-wordpress:feed-additions:1">147513011</site>	<item>
		<title>【Cocoon】アーカイブウィジェットを年別にまとめてコンパクト表示【カスタマイズ】</title>
		<link>https://inokigeki.com/cocoon-customize-archive</link>
					<comments>https://inokigeki.com/cocoon-customize-archive#comments</comments>
		
		<dc:creator><![CDATA[I]]></dc:creator>
		<pubDate>Mon, 25 Nov 2019 21:35:45 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[カスタマイズ]]></category>
		<guid isPermaLink="false">https://inokigeki.com/?p=1084</guid>

					<description><![CDATA[WordPressの標準機能であるアーカイブウィジェットをカスタマイズしました。 備忘録として残しておきます。 目次 変更前→変更後のデザインウィジェットの設定CSSのソースコードjQueryのソースコード修正版まとめ  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>WordPressの標準機能であるアーカイブウィジェットをカスタマイズしました。</p>



<p>備忘録として残しておきます。</p>




  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">変更前→変更後のデザイン</a></li><li><a href="#toc2" tabindex="0">ウィジェットの設定</a></li><li><a href="#toc3" tabindex="0">CSSのソースコード</a></li><li><a href="#toc4" tabindex="0">jQueryのソースコード</a></li><li><a href="#toc5" tabindex="0">修正版</a></li><li><a href="#toc6" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">変更前→変更後のデザイン</span></h2>



<p>アーカイブウィジェットは設定でドロップダウン表示とリスト表示が選べますが、そのままのデザインではしっくりきませんでした。</p>



<p>それぞれのカスタマイズ前のデザインです。</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://inokigeki.com/wp-content/uploads/d0a8cc9de61945726dde093c5eb67679.png"><img fetchpriority="high" decoding="async" width="362" height="234" src="https://inokigeki.com/wp-content/uploads/d0a8cc9de61945726dde093c5eb67679.png" alt="" class="wp-image-1130"/></a><figcaption class="wp-element-caption">ドロップダウン表示</figcaption></figure>



<p>ドロップダウン表示はちょっと味気ないデザインだし、月を選択するのに2クリックしなければならないので操作性も悪いなと感じていました。</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-04.59.43-fullpage.png"><img decoding="async" width="354" height="479" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-04.59.43-fullpage.png" alt="" class="wp-image-1119"/></a><figcaption class="wp-element-caption">リスト表示</figcaption></figure>



<p>一方のリスト表示。<br>これぐらいの長さならまだ問題ありませんが、これから長年サイトを運用していくとなると、もっと長さも伸び、見栄えや操作性も悪くなります。</p>



<p>なので今回は、</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box has-border-color has-key-color-border-color">
<ul class="wp-block-list">
<li>一覧性がある（分かりやすさ）</li>



<li>1クリックで飛べる（使いやすさ）</li>



<li>コンパクトな表示（見やすさ）</li>
</ul>
</div>



<p>この三点を目標にカスタマイズした結果、</p>



<figure class="wp-block-image aligncenter size-large is-style-default"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.08.12-fullpage.png"><img decoding="async" width="350" height="229" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.08.12-fullpage.png" alt="" class="wp-image-1120"/></a><figcaption class="wp-element-caption">完成形</figcaption></figure>



<p>こんな感じのデザインになりました。</p>



<p><span class="marker">直近の年は最初から表示、それ以外の年はスペース節約のため非表示</span>になっています。<br>各年をクリックすると表示・非表示を切り替えできます。</p>



<p>今回のカスタマイズはCocoonの作者、わいひらさんの記事を参考にさせてもらいました↓<br></p>




<a rel="noopener" target="_blank" href="https://nelog.jp/folding-archive-widget" title="折り畳み式アーカイブウィジェットを作成するWordPressカスタマイズ方法。プラグイン不要コピペのみ。" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://inokigeki.com/wp-content/uploads/cocoon-resources/blog-card-cache/7e8ccadfe9c8a59deed8b299d5b116cd.jpg" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">折り畳み式アーカイブウィジェットを作成するWordPressカスタマイズ方法。プラグイン不要コピペのみ。</div><div class="blogcard-snippet external-blogcard-snippet">今回は、Wordpressアーカイブウィジェットのリスト表示を、プラグインを必要とせず、コピペのみでスッキリと…</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://nelog.jp/folding-archive-widget" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">nelog.jp</div></div></div></div></a>



<h2 class="wp-block-heading"><span id="toc2">ウィジェットの設定</span></h2>



<p>まずはウィジェットの設定を確認します。</p>



<p>「外観」→「ウィジェット」で、アーカイブをクリックし「ドロップダウン表示」のチェックを外して保存。</p>



<figure class="wp-block-image size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="580" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-1024x580.png" alt="" class="wp-image-1127" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-1024x580.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-500x283.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-768x435.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-120x68.png 120w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-160x90.png 160w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage-320x180.png 320w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.09.22-fullpage.png 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>ここにチェックしたままだとドロップダウン表示になります。</p>



<h2 class="wp-block-heading"><span id="toc3">CSSのソースコード</span></h2>



<p>以下のコードを、「外観」→「テーマエディター」Cocoon Childのstyle.cssに貼り付けます。</p>



<figure class="wp-block-image size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="533" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage-1024x533.png" alt="" class="wp-image-1148" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage-1024x533.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage-500x260.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage-768x400.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.04.49-fullpage.png 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<div class="hcb_wrap code-css"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS" data-line="6-11"><code>/*---折り畳みアーカイブウィジェット---*/
.widget_archive a.year{ /*各年*/
	cursor: pointer;
	border-bottom: 1px dotted #ccc; /*各年に下線を引く*/
}
.widget_archive a.year::after{ /*各年横のアイコン*/
	font-family: &quot;Font Awesome 5 Free&quot;;
	content: &#39;\f107&#39;; /* アイコンの指定 */
	position: relative; /* 相対配置 */
	left: 5px; /* アイコンの位置 */
	font-weight: bold;
}
.widget_archive .years ul { /*各月*/
	display: flex;
	flex-flow: row wrap;
	margin-left: 5px; /*インデント*/
	font-size: 1rem;
	text-decoration: underline; /*各月に下線を引く*/
}
.widget_archive ul.years li {
	padding: 0 1px; /*各月の間隔*/
}
#sidebar .widget_archive ul.years li :hover { /*マウスホバー時*/
	background: none;
	transition: 0.1s;
	color: #72c7e6;
}
.widget_archive ul.years .hide { /*各年をクリックすると開閉*/
	margin: 0;
	height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}</code></pre></div>



<p>6〜11行目のコードは「Font Awesome5」に設定している場合です。<br>「Font Awesome4」に設定している場合は対応するコードに変えてください。</p>



<p>Font Awesomeについては↓の記事が分かりやすかったです。</p>




<a rel="noopener" target="_blank" href="https://y-k-studio.com/it/cocoon-fontawesome4to5" title="【Cocoon】Font Awesome 4から5へ変更する前に注意すべきこと" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://inokigeki.com/wp-content/uploads/cocoon-resources/blog-card-cache/ea00416d26f27b418ac73f9f2311cd97.jpg" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">【Cocoon】Font Awesome 4から5へ変更する前に注意すべきこと</div><div class="blogcard-snippet external-blogcard-snippet">2019年11月14日に無料WordPressテーマ「Cocoon」のバージョンが2.0.0になり、多くのブロックエディター機能が強化されました。そして今回のアップデートでFont Awesome 5が漸く公式から使用できるように用意されま...</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://y-k-studio.com/programming/wordpress/cocoon-fontawesome4to5/" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">y-k-studio.com</div></div></div></div></a>



<h2 class="wp-block-heading"><span id="toc4">jQueryのソースコード</span></h2>



<p>次に、以下のjQueryコードをCocoon Childのjavascript.jsに貼り付けます。</p>



<figure class="wp-block-image size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="520" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage-1024x520.png" alt="" class="wp-image-1138" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage-1024x520.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage-500x254.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage-768x390.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-11-25-at-05.07.27-fullpage.png 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<div class="hcb_wrap code-css"><pre class="prism line-numbers lang-js" data-file="javascript.js" data-lang="JavaScript" data-line="89-90"><code>///////////////////////////////////
// 折り畳み式アーカイブウィジェット
/////////////////////////////////
(function($) {
  $(function() {
    var wgts = $(&quot;.widget_archive&quot;);//アーカイブウィジェット全てを取得
    //アーカイブウィジェットを1つずつ処理する
    wgts.each(function(i, el) {
      wgt = $(el);

      //日付表示＋投稿数か
      var has_date_count = wgt.text().match(/\d+年\d+月\s\(\d+\)/);
      //日付表示だけか
      var has_date_only = wgt.text().match(/\d+年\d+月/) && !has_date_count;

      //日付表示されているとき（ドロップダウン表示でない時）
      if ( has_date_count || has_date_only ) {
        var
          clone = wgt.clone(),//アーカイブウィジェットの複製を作成
          year = [];
        //クローンはウィジェットが後に挿入。クローンはcssで非表示
        wgt.after(clone);
        clone.attr(&quot;class&quot;, &quot;archive_clone&quot;).addClass(&#39;hide&#39;);

        var
          acv = wgt; //ウィジェット
          acvLi = acv.find(&quot;li&quot;); //ウィジェット内のli全て
        //ul.yearsをアーカイブウィジェット直下に追加してそのDOMを取得
        var acv_years =  acv.append(&#39;&lt;ul class=&quot;years&quot;&gt;&lt;/ul&gt;&#39;).find(&quot;ul.years&quot;);

        //liのテキストから年がどこからあるかを調べる
        acvLi.each(function(i) {
          var reg = /(\d+)年(\d+)月/;
          //日付表示＋投稿数か
          if ( has_date_count ) {
            reg = /(\d+)年(\d+)月\s\((\d+)\)/;
          }
          var dt = $(this).text().match(reg);
          year.push(dt[1]);

        });
        $.unique(year); //重複削除

        acvLi.unwrap(); //liの親のulを解除

        //投稿年があるだけ中にブロックを作る
        var
          yearCount = year.length,
          i = 0;
        while (i &lt; yearCount) {
          acv_years.append(&quot;&lt;li class=&#39;year_&quot; + year[i] + &quot;&#39;&gt;&lt;a class=&#39;year&#39;&gt;&quot; + year[i] + &quot;年&lt;/a&gt;&lt;ul class=&#39;month&#39;&gt;&lt;/ul&gt;&lt;/li&gt;&quot;);
          i++;
        }

        //作ったブロック内のulに内容を整形して移動
        //オリジナルのクローンは順番に削除
        var j = 0;
        acvLi.each(function(i, el) {
          var reg = /(\d+)年(\d+)月/;
          //日付表示＋投稿数か
          if ( has_date_count ) {
            reg = /(\d+)年(\d+)月\s\((\d+)\)/;
          }
          var
            dt = $(this).text().match(reg),
            href = $(this).find(&quot;a&quot;).attr(&quot;href&quot;);

          //月の追加
          var rTxt = &quot;&lt;li&gt;&lt;a href=&#39;&quot; + href + &quot;&#39;&gt;&quot; + &quot;&quot; + dt[2] + &quot;月&lt;/a&gt;&quot;;
          //日付表示＋投稿数か
          if ( has_date_count ) {
            rTxt += &quot; (&quot; + dt[3] + &quot;)&quot; + &quot;&lt;/li&gt;&quot;; //投稿数の追加
          }

          //作成した月のHTMLを追加、不要なものは削除
          if (year[j] === dt[1]) {
            acv_years.find(&quot;.year_&quot; + year[j] + &quot; ul&quot;).append(rTxt);
            $(this).remove();
          } else {
            j++;
            acv_years.find(&quot;.year_&quot; + year[j] + &quot; ul&quot;).append(rTxt);
            $(this).remove();
          }
        });

        //クローン要素を削除
        clone.remove();

        //直近の年以外は非表示
        acv.find(&quot;ul.years ul:not(:first)&quot;).addClass(&quot;hide&quot;);

        //年をクリックで展開
        acv.find(&quot;a.year&quot;).on(&quot;click&quot;, function() {
          $(this).next().toggleClass(&quot;hide&quot;);
        });
      }//if has_date_count || has_date_only
    });//wgts.each

  });

})(jQuery);</code></pre></div>



<p><span class="marker">直近の年以外は最初、非表示</span>になっています。<br>クリックすると表示されますが、最初から全年表示したいという方は89〜90行目のコードを削除してください。</p>



<p>直近の2年分を表示したい場合は、89〜90行目のコードを以下のコードに書き換えてください。</p>



<div class="hcb_wrap code-css"><pre class="prism line-numbers lang-js" data-file="javascript.js" data-lang="JavaScript" data-start="89"><code>        //直近2年（0番目と1番目のul.month）以外は非表示
        acv.find(&quot;ul.years &gt; li:gt(1) ul.month&quot;).addClass(&quot;hide&quot;);</code></pre></div>



<h2 class="wp-block-heading"><span id="toc5">修正版</span></h2>



<p>ここからはただの自己満のコードを載せておきます。</p>



<p>以下の点を修正しました。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box has-border-color has-key-color-border-color">
<ol class="wp-block-list">
<li>月の表示を等間隔にして、1行に6ヶ月ずつ並べる(画面幅が狭いスマホでは3列表示にする)</li>



<li>月の表示の行間を狭める</li>



<li>ウィンドウを縮小した際、2桁月の表示が改行されてしまうので折り返し禁止にする</li>



<li>月の並び順を<span class="red">降順(12月→1月)</span>から、<span class="red">昇順(1月→12月)</span>に変更</li>
</ol>
</div>



<p>1〜3はCSS、4はJavaScriptの管轄です。</p>



<p>Geminiに上記のコードを投げたら、<span class="marker-under">「無駄な処理」や「非効率なDOM操作」がいくつか見受けられる</span>とのことで、ぱぱっと簡素化・最適化してくれました。</p>



<p>私には何が何だかさっぱり(笑)ですが、こういうプログラミング系にはめちゃくちゃ強いですねAIは。</p>



<p>最終的にこうなりました↓</p>



<figure class="wp-block-image aligncenter size-medium"><a href="https://inokigeki.com/wp-content/uploads/Screenshot-05-46-06.png"><img loading="lazy" decoding="async" width="500" height="220" src="https://inokigeki.com/wp-content/uploads/Screenshot-05-46-06-500x220.png" alt="" class="wp-image-1852" srcset="https://inokigeki.com/wp-content/uploads/Screenshot-05-46-06-500x220.png 500w, https://inokigeki.com/wp-content/uploads/Screenshot-05-46-06-768x338.png 768w, https://inokigeki.com/wp-content/uploads/Screenshot-05-46-06.png 876w" sizes="(max-width: 500px) 100vw, 500px" /></a><figcaption class="wp-element-caption">修正版</figcaption></figure>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS" data-line="21-23,26-35,42-45"><code>
/*--- 折り畳みアーカイブウィジェット ---*/
/* 各年の親要素：クリックできることを示し、区切り線を入れる */
.widget_archive a.year {
    cursor: pointer;
    border-bottom: 1px dotted #ccc; /* 各年に下線を引く */
    display: block; /* クリック領域を広げる */
}
/* 各年横のアイコン */
.widget_archive a.year::after {
    font-family: &quot;Font Awesome 5 Free&quot;;
    content: &#39;\f107&#39;; /* 下向き矢印のアイコン */
    margin-left: 8px; /* アイコンの位置 */
    font-weight: bold;
}
/* 各月の横並び（フレックスボックス）の設定 */
.widget_archive .years ul {
    display: flex;
    flex-flow: row wrap; /* 折り返しを許可 */
    font-size: 1rem;
    line-height: 1.5; /* 行の高さを低くする */
    text-align: center; /* 中央寄せで等間隔感を出す */
    white-space: nowrap; /* 月名（12月など）が途中で改行されないように固定 */
    text-decoration: underline; /* 各月のリンクに下線を引く */
}
/* 1行に6ヶ月ずつ並べる（PCサイズ） */
.widget_archive ul.years li {
    flex: 0 0 calc(100% / 6); /* 6列 */
}
/* レスポンシブ対応：画面幅が狭いときは3列にする */
@media (max-width: 480px) {
  .widget_archive ul.years li {
    flex: 0 0 calc(100% / 3); /* 3列 */
  }
}
/* マウスホバー時のエフェクト */
#sidebar .widget_archive ul.years li :hover {
    background: none;
    transition: 0.1s;
    color: #72c7e6;
}
/* jQueryで .hide を toggle する場合、CSSは以下のようにシンプルでOK */
.widget_archive .hide {
  display: none;
}</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-file="javascript.js" data-lang="JavaScript" data-line="48-49,55-60"><code>/////////////////////////////////////
// 折り畳み式アーカイブウィジェット
/////////////////////////////////
(function($) {
  $(function() {
    $(&quot;.widget_archive&quot;).each(function() {
      var $wgt = $(this);
      var wgtText = $wgt.text();

      // 正規表現を一度だけ定義
      var regCount = /(\d+)年(\d+)月\s\((\d+)\)/;
      var regSimple = /(\d+)年(\d+)月/;
      
      var hasCount = wgtText.match(regCount);
      var hasDate = wgtText.match(regSimple);

      // ドロップダウン表示時はスキップ
      if (!hasDate) return;

      var $listItems = $wgt.find(&quot;li&quot;);
      var years = [];

      // 1. 年のリストを抽出
      $listItems.each(function() {
        var match = $(this).text().match(regSimple);
        if (match) years.push(match[1]);
      });
      years = $.unique(years);

      // 2. 新しい構造（ul.years）を作成
      var $acvYears = $(&#39;&lt;ul class=&quot;years&quot;&gt;&lt;/ul&gt;&#39;);
      $.each(years, function(i, y) {
        $acvYears.append(&#39;&lt;li class=&quot;year_&#39; + y + &#39;&quot;&gt;&lt;a class=&quot;year&quot;&gt;&#39; + y + &#39;年&lt;/a&gt;&lt;ul class=&quot;month&quot;&gt;&lt;/ul&gt;&lt;/li&gt;&#39;);
      });

      // 3. 既存のliを新しい構造に振り分け
      $listItems.each(function() {
        var $li = $(this);
        var match = $li.text().match(hasCount ? regCount : regSimple);
        if (!match) return;

        var y = match[1], m = match[2], count = match[3];
        var href = $li.find(&quot;a&quot;).attr(&quot;href&quot;);
        
        var linkText = m + &quot;月&quot; + (hasCount ? &quot; (&quot; + count + &quot;)&quot; : &quot;&quot;);
        var $newLi = $(&quot;&lt;li&gt;&quot;).append($(&quot;&lt;a&gt;&quot;).attr(&quot;href&quot;, href).text(linkText));

        // 該当する年のulに追加（prependで昇順、appendで降順）
        $acvYears.find(&quot;.year_&quot; + y + &quot; .month&quot;).prepend($newLi);
      });

      // 4. DOMを入れ替え
      $wgt.find(&quot;ul&quot;).first().replaceWith($acvYears);

      // 5. インタラクション設定
      $acvYears.find(&quot;ul.month:not(:first)&quot;).hide(); // 最初以外非表示
      $acvYears.on(&quot;click&quot;, &quot;a.year&quot;, function(e) {
        e.preventDefault();
        $(this).next(&quot;.month&quot;).slideToggle(200);
      });
    });
  });
})(jQuery);</code></pre></div>



<p>ハイライトしてあるところが大きく変わった部分です。</p>



<h2 class="wp-block-heading"><span id="toc6">まとめ</span></h2>



<p>今回のカスタマイズでこだわったのは二点。</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box has-border-color has-key-color-border-color">
<ul class="wp-block-list">
<li>各年の横に矢印アイコンを表示して開閉式であることを示した</li>



<li>各月にアンダーラインを引き、リンクだと分かりやすくした</li>
</ul>
</div>



<p>ユーザビリティ重視です。</p>



<p>コピペするだけで簡単に実装できるので、アーカイブが長くなって困っている方はぜひいかがでしょうか。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inokigeki.com/cocoon-customize-archive/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1084</post-id>	</item>
		<item>
		<title>【Cocoon】画像拡大表示が二重になったときの解決方法</title>
		<link>https://inokigeki.com/cocoon-image-double</link>
					<comments>https://inokigeki.com/cocoon-image-double#respond</comments>
		
		<dc:creator><![CDATA[I]]></dc:creator>
		<pubDate>Fri, 13 Dec 2019 18:40:00 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cocoon]]></category>
		<guid isPermaLink="false">https://inokigeki.com/?p=1178</guid>

					<description><![CDATA[いつの間にか、画像をクリックすると二重表示されるようになっていたこのサイト。 原因を探っていくと、JavaScript縮小化設定とプラグインの2つが原因であることが分かりました。 今回は、画像の二重表示の解決方法をご紹介 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>いつの間にか、画像をクリックすると二重表示されるようになっていたこのサイト。</p>



<p>原因を探っていくと、<strong>JavaScript縮小化設定</strong>と<strong>プラグイン</strong>の2つが原因であることが分かりました。</p>



<p>今回は、画像の二重表示の解決方法をご紹介します。</p>




  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-4" checked><label class="toc-title" for="toc-checkbox-4">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">画像が二重に表示される</a></li><li><a href="#toc2" tabindex="0">原因①「JavaScript縮小化」設定</a></li><li><a href="#toc3" tabindex="0">原因②画像拡大表示プラグインの有効化</a></li><li><a href="#toc4" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">画像が二重に表示される</span></h2>



<p>画像をクリックすると下のように二重表示されるようになりました。</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="300" height="169" src="https://inokigeki.com/wp-content/uploads/gallery.gif" alt="" class="wp-image-1179"/></figure></div>



<p>画像を閉じるには×を二回押さなければなりません。今までは一回で閉じれてたのに…。</p>



<p>始めはCocoonのアップデートが原因か？と思いましたが、アップデート内容にそれらしきものはなく。</p>



<p>ちょっと前まで普通に表示されていたということは、最近変更した設定が原因じゃないかと推測しました。</p>



<h2 class="wp-block-heading"><span id="toc2">原因①「JavaScript縮小化」設定</span></h2>



<p>つい最近いじった設定といえば、Cocoon設定内にある「JavaScript縮小化」。</p>



<p>当サイトでは11月頃から、行数表示がされるシンタックスハイライター「<strong>Highlighting Code Block</strong>」というプラグインを使っています。</p>



<p class="has-text-color has-grey-color">（行数表示は必要不可欠…。）</p>



<p>しかし、このプラグインをそのまま有効化しても、Cocoon側のハイライターが優先され行数表示がされないので、設定を変更しました。</p>



<p>「Cocoon設定」→「高速化」→「JavaScriptを縮小化する」のチェックを外しています。</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="757" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage-1024x757.png" alt="" class="wp-image-1185" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage-1024x757.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage-500x370.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage-768x568.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.22.27-fullpage.png 1255w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>チェックを入れ直すと二重表示は解消されました。</p>



<p>なので、この設定をいじったことが二重表示の一番の要因ですね。</p>



<p>もちろん、このプラグインを使い続けたいので、「JavaScriptを縮小化する」設定のチェックは外したままにしておきます。</p>



<h2 class="wp-block-heading"><span id="toc3">原因②画像拡大表示プラグインの有効化</span></h2>



<p>そもそもの話、なぜ二重表示になったのかというと、「<strong>Easy FancyBox</strong>」という画像拡大表示プラグインをインストールし、有効化していました。</p>



<p>Cocoonには画像拡大表示機能が標準で備わっているので、今となってはもう必要のないプラグインなのですが、このプラグインとCocoonの機能が重複し、二重表示になったのでした。</p>



<p>ではお役御免ということで、プラグインを思い切って削除しましょう。</p>



<p>「プラグイン」→「インストール済みプラグイン」→「<strong>Easy FancyBox</strong>」の停止→削除。</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="456" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage-1024x456.png" alt="" class="wp-image-1188" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage-1024x456.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage-500x223.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage-768x342.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.43.57-fullpage.png 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage.png"><img loading="lazy" decoding="async" width="1024" height="497" src="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage-1024x497.png" alt="" class="wp-image-1189" srcset="https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage-1024x497.png 1024w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage-500x243.png 500w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage-768x373.png 768w, https://inokigeki.com/wp-content/uploads/Screen-Shot-2019-12-05-at-04.45.12-fullpage.png 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>改めてサイトを確認すると、</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="300" height="169" src="https://inokigeki.com/wp-content/uploads/gallery2.gif" alt="" class="wp-image-1186"/></figure></div>



<p>無事に二重表示が解消されました！</p>



<h2 class="wp-block-heading"><span id="toc4">まとめ</span></h2>



<p>今回は、画像が二重表示になった場合の解決方法をご紹介しました。</p>



<p>根本的な原因は、テーマ側に画像拡大表示機能があるにも関わらず、同じ機能を持つプラグインを有効化したままにしていたことでした。</p>



<p>今回のことがなかったら、たぶんずっと気付かずに不要なプラグインを有効化したままだったので気付けて良かったです(笑)</p>



<p>プラグインの削除はサイトの軽量化にもなりますし、定期的にプラグインを見直していこうと思いました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inokigeki.com/cocoon-image-double/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1178</post-id>	</item>
		<item>
		<title>【Cocoon】SNSシェアボタン・フォローボタンを丸く＆小型化【カスタマイズ】</title>
		<link>https://inokigeki.com/cocoon-customize-snsbutton</link>
					<comments>https://inokigeki.com/cocoon-customize-snsbutton#comments</comments>
		
		<dc:creator><![CDATA[I]]></dc:creator>
		<pubDate>Wed, 11 Sep 2019 21:11:31 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[カスタマイズ]]></category>
		<guid isPermaLink="false">https://inokigeki.com/?p=873</guid>

					<description><![CDATA[CocoonのSNSシェアボタンとフォローボタンをカスタマイズしました。 備忘録として残しておきます。 目次 変更前→変更後のデザインCocoon設定CSSでシェアボタンをカスタマイズCSSでフォローボタンをカスタマイズ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>CocoonのSNSシェアボタンとフォローボタンをカスタマイズしました。</p>



<p>備忘録として残しておきます。</p>




  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-6" checked><label class="toc-title" for="toc-checkbox-6">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">変更前→変更後のデザイン</a></li><li><a href="#toc2" tabindex="0">Cocoon設定</a></li><li><a href="#toc3" tabindex="0">CSSでシェアボタンをカスタマイズ</a></li><li><a href="#toc4" tabindex="0">CSSでフォローボタンをカスタマイズ</a></li><li><a href="#toc5" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">変更前→変更後のデザイン</span></h2>



<p>変更前のデザイン。</p>



<figure class="wp-block-image"><a href="https://inokigeki.com/wp-content/uploads/e683416a81620b815215631c58e1cd21.png"><img loading="lazy" decoding="async" width="833" height="214" src="https://inokigeki.com/wp-content/uploads/e683416a81620b815215631c58e1cd21.png" alt="" class="wp-image-897" srcset="https://inokigeki.com/wp-content/uploads/e683416a81620b815215631c58e1cd21.png 833w, https://inokigeki.com/wp-content/uploads/e683416a81620b815215631c58e1cd21-500x128.png 500w, https://inokigeki.com/wp-content/uploads/e683416a81620b815215631c58e1cd21-768x197.png 768w" sizes="(max-width: 833px) 100vw, 833px" /></a><figcaption>パソコンでの表示</figcaption></figure>



<div class="wp-block-image"><figure class="aligncenter"><a href="https://inokigeki.com/wp-content/uploads/fc2cbeefdd05a4019d110878c35db4f7.png"><img loading="lazy" decoding="async" width="408" height="207" src="https://inokigeki.com/wp-content/uploads/fc2cbeefdd05a4019d110878c35db4f7.png" alt="" class="wp-image-898"/></a><figcaption>スマホでの表示</figcaption></figure></div>



<p>そのままのデザインではちょっと存在感があったのと、スマホでの表示だとシェアボタンが見切れるのが気になったので、</p>



<div class="wp-block-cocoon-blocks-blank-box-1 blank-box block-box has-border-color has-key-color-border-color">
<ul class="wp-block-list"><li>アイコンのみの表示で小型化</li><li>丸形</li><li>一列に横並び</li></ul>
</div>



<p>この三点を目標にカスタマイズした結果、</p>



<figure class="wp-block-image"><a href="https://inokigeki.com/wp-content/uploads/91b99157d0f64bac1e4eea03ce1ffe69.png"><img loading="lazy" decoding="async" width="826" height="200" src="https://inokigeki.com/wp-content/uploads/91b99157d0f64bac1e4eea03ce1ffe69.png" alt="" class="wp-image-884" srcset="https://inokigeki.com/wp-content/uploads/91b99157d0f64bac1e4eea03ce1ffe69.png 826w, https://inokigeki.com/wp-content/uploads/91b99157d0f64bac1e4eea03ce1ffe69-500x121.png 500w, https://inokigeki.com/wp-content/uploads/91b99157d0f64bac1e4eea03ce1ffe69-768x186.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a></figure>



<p>こんな感じのデザインになりました。</p>



<h2 class="wp-block-heading"><span id="toc2">Cocoon設定</span></h2>



<p>まずは「Cocoon設定」→「SNSシェア」で以下のように設定し保存します。</p>



<figure class="wp-block-image"><a href="https://inokigeki.com/wp-content/uploads/7377b07e0381226fd41348d6d03950e0.png"><img loading="lazy" decoding="async" width="876" height="651" src="https://inokigeki.com/wp-content/uploads/7377b07e0381226fd41348d6d03950e0.png" alt="" class="wp-image-885" srcset="https://inokigeki.com/wp-content/uploads/7377b07e0381226fd41348d6d03950e0.png 876w, https://inokigeki.com/wp-content/uploads/7377b07e0381226fd41348d6d03950e0-500x372.png 500w, https://inokigeki.com/wp-content/uploads/7377b07e0381226fd41348d6d03950e0-768x571.png 768w" sizes="(max-width: 876px) 100vw, 876px" /></a></figure>



<p>「カラム数」はシェアボタンの数によって変えてください。<br>このサイトではシェアボタンを5つ表示しているのでカラム数を5列にしています。</p>



<p>「ロゴ・キャプションの配置」は<span class="bold-red">左右</span>にしてください。</p>



<h2 class="wp-block-heading"><span id="toc3">CSSでシェアボタンをカスタマイズ</span></h2>



<p>まずはアイコン横の文字を消します。</p>



<p>以下のコードを、WordPress管理画面の左サイドバーにある「外観」→「テーマエディター」Cocoon Childのstyle.cssに貼り付けます。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS"><code>#main .button-caption {
	display: none; /*キャプション非表示*/
}</code></pre></div>



<p>デザインは以下のコード。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS"><code>/*SNSシェアボタン*/
.sns-share-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-share-buttons {
	flex-wrap: nowrap; /*折り返さない*/
	justify-content: center; /*中央寄せ*/
}
.sns-share-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-share a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}</code></pre></div>



<p>コメントアウトでそれぞれ何を設定しているか補足してあるので、多少は分かりやすくなっているかと思います。</p>



<p>ボタンの間隔、大きさなどはお好みで変更してください。</p>



<h2 class="wp-block-heading"><span id="toc4">CSSでフォローボタンをカスタマイズ</span></h2>



<p>次にフォローボタンです。</p>



<p>基本的には先ほどのコードをshareからfollowに変えるだけなので、コード自体はシェアボタンのとほぼ同じです。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS"><code>/*SNSフォローボタン*/
.sns-follow-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-follow-buttons {
	justify-content: center; /*中央寄せ*/
}
.sns-follow-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-follow a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}</code></pre></div>



<p>こちらもお好みでコードを変えてください。</p>



<h2 class="wp-block-heading"><span id="toc5">まとめ</span></h2>



<p>以上のコードをまとめるとこうなります。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-file="style.css" data-lang="CSS"><code>/*---SNSボタンを丸くする---*/
#main .button-caption {
	display: none; /*キャプション非表示*/
}

/*SNSシェアボタン*/
.sns-share-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-share-buttons {
	flex-wrap: nowrap; /*折り返さない*/
	justify-content: center; /*中央寄せ*/
}
.sns-share-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-share a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}

/*SNSフォローボタン*/
.sns-follow-message{
	font-weight: bold; /*太字*/
	color: #875d5b; /*文字色*/
}
.sns-follow-buttons {
	justify-content: center; /*中央寄せ*/
}
.sns-follow-buttons a {
	border-radius: 50%; /*丸くする*/
	font-size: 20px; /*アイコンのサイズ*/
	margin: 0 10px; /*ボタン同士の間隔*/
}
#main .sns-follow a {
	width: 40px; /*ボタンの横幅*/
	height: 40px; /*ボタンの高さ*/
}</code></pre></div>



<p>コピペして自分好みにカスタマイズしてみてください。</p>



<div class="wp-block-cocoon-blocks-caption-box-1 caption-box block-box has-border-color has-key-color-border-color"><div class="caption-box-label block-box-label box-label fab-pencil"><span class="caption-box-label-text block-box-label-text box-label-text">今回参考にさせてもらった記事</span></div><div class="caption-box-content block-box-content box-content">
<p></p>




<a rel="noopener" target="_blank" href="https://web-ashibi.net/archives/2875" title="【Cocoon】サイドバーのSNSフォローボタンをカスタマイズ" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://inokigeki.com/wp-content/uploads/cocoon-resources/blog-card-cache/77189b2dd6fbb374d937220e7c33e86d.jpg" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">【Cocoon】サイドバーのSNSフォローボタンをカスタマイズ</div><div class="blogcard-snippet external-blogcard-snippet">WordPressテーマ「Cocoon」のカスタマイズ備忘録です。今回はサイドバーにウィジェットで表示する「SNSフォローボタン」のカスタマイズをしてみました。サイドバーにプロフィールボックスを置いてる人は必要ないですが、プロフィールじゃな</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://web-ashibi.net/archives/2875" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">web-ashibi.net</div></div></div></div></a>




<a rel="noopener" target="_blank" href="https://unity-right.com/sns-share/" title="SNSシェアボタンを丸くして横1列にするカスタマイズ【Cocoon】" class="blogcard-wrap external-blogcard-wrap a-wrap cf"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://inokigeki.com/wp-content/uploads/cocoon-resources/blog-card-cache/75465c1c7ced88a423806f35618bc2e8.png" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">SNSシェアボタンを丸くして横1列にするカスタマイズ【Cocoon】</div><div class="blogcard-snippet external-blogcard-snippet">Cocoonのsnsシェアボタンをオシャレにカスタマイズ。形を四角から丸形に、2列ではなく1列横並びに。ロゴマークの大きさやボタン同士の間隔・右寄せ中央寄せなどのCSSコード。順をおって分かりやすく説明分入れました。</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://unity-right.com/sns-share/" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">unity-right.com</div></div></div></div></a>
</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://inokigeki.com/cocoon-customize-snsbutton/feed</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">873</post-id>	</item>
	</channel>
</rss>
