<?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>TCD016 Chill覚書 &#187; カスタマイズ</title>
	<atom:link href="http://tcd016chill.sukkiris.com/category/kasutamaizu/feed/" rel="self" type="application/rss+xml" />
	<link>http://tcd016chill.sukkiris.com</link>
	<description>超絶かわいいワードプレステンプレート</description>
	<lastBuildDate>Sun, 13 Mar 2016 14:10:41 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>TCD016Chillの新着記事の要約（抜粋）から、ショートコードを削除</title>
		<link>http://tcd016chill.sukkiris.com/tcd016chill-no-shinchakukiji-n/</link>
		<comments>http://tcd016chill.sukkiris.com/tcd016chill-no-shinchakukiji-n/#comments</comments>
		<pubDate>Fri, 31 Oct 2014 06:01:11 +0000</pubDate>
		<dc:creator><![CDATA[アフィぶた]]></dc:creator>
				<category><![CDATA[カスタマイズ]]></category>

		<guid isPermaLink="false">http://tcd016chill.sukkiris.com/?p=241</guid>
		<description><![CDATA[本文中でショートコードを使っている場合、新着記事の要約に、ショートコードが出てきてがっかりしたことってないです [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>本文中でショートコードを使っている場合、新着記事の要約に、ショートコードが出てきてがっかりしたことってないですか？</p>
<p>私はあります。もう、すっごいカッコ悪いんですよね。</p>
<p>こんなかんじですよ。<br />
<img class="alignnone size-full wp-image-245" src="http://tcd016chill.sukkiris.com/wp-content/uploads/2014/10/20141031030336.jpg" alt="20141031030336" width="532" height="311" /></p>
<p>でも、ちょいと直せばすぐ対応できます。</p>
<h3 class="news_headline1">直し方</h3>
<p><strong>管理画面＞外観＞テーマ編集で、functions.phpを開く</strong></p>
<p>function new_excerpt&#8230; という部分に、下記のように1行追加する。</p>
<pre class="brush: xml; title: ; notranslate">
function new_excerpt($a) {

 $base_content = get_the_content();
 $base_content = preg_replace('!&lt;style.*?&gt;.*?&lt;/style.*?&gt;!is', '', $base_content);
 $base_content = preg_replace('!&lt;script.*?&gt;.*?&lt;/script.*?&gt;!is', '', $base_content);
 $base_content = strip_tags($base_content);
//この1行を追加した
 $base_content =  strip_shortcodes($base_content);
//
 $trim_content = mb_substr($base_content, 0, $a ,&quot;utf-8&quot;);
 $trim_content = mb_ereg_replace('&amp;nbsp;', '', $trim_content);

 echo $trim_content . '…';
}
</pre>
<p>超スッキリ！</p>
]]></content:encoded>
			<wfw:commentRss>http://tcd016chill.sukkiris.com/tcd016chill-no-shinchakukiji-n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TCD016 Chillで子テーマ作ると、ロゴの調整機能がおかしくなる！？</title>
		<link>http://tcd016chill.sukkiris.com/tcd016-chill-de-ko-te-ma-tsuku/</link>
		<comments>http://tcd016chill.sukkiris.com/tcd016-chill-de-ko-te-ma-tsuku/#comments</comments>
		<pubDate>Tue, 16 Sep 2014 08:51:49 +0000</pubDate>
		<dc:creator><![CDATA[アフィぶた]]></dc:creator>
				<category><![CDATA[カスタマイズ]]></category>

		<guid isPermaLink="false">http://tcd016chill.sukkiris.com/?p=131</guid>
		<description><![CDATA[ワードプレステーマ、TCD06 Chillを色々カスタマイズしようとして、子テーマ作ったんですよ。 子テーマの [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>ワードプレステーマ、TCD06 Chillを色々カスタマイズしようとして、子テーマ作ったんですよ。</p>
<p>子テーマの作り方はこちら<br />
<a href="http://wordpress.sukkiris.com/meshiopuresu-ko-te-ma-wo-tsuka/" class="su-button su-button-style-flat" style="color:#ffffff;background-color:#2d30ef;border-color:#2426bf;border-radius:29px;-moz-border-radius:29px;-webkit-border-radius:29px" target="_blank"><span style="color:#ffffff;padding:6px 16px;font-size:13px;line-height:20px;border-color:#6c6ef4;border-radius:29px;-moz-border-radius:29px;-webkit-border-radius:29px;text-shadow:none;-moz-text-shadow:none;-webkit-text-shadow:none"><i class="fa fa-angle-double-right" style="font-size:13px;color:#FFFFFF"></i> 子テーマの作り方</span></a></p>
<p>style.cssは以下のように書いてくださいね。</p>
<blockquote><p>/*<br />
Template: chill_tcd016<br />
*/</p>
<p>@import url(&#8216;../chill_tcd016/style.css&#8217;);</p></blockquote>
<p>そうすると、外観→テーマオプションの表示がおかしくなります。</p>
<div id="attachment_132" style="width: 510px" class="wp-caption aligncenter"><img class="wp-image-132 size-full" src="http://tcd016chill.sukkiris.com/wp-content/uploads/2014/09/image4.png" alt="" width="500" height="365" /><p class="wp-caption-text">なんか表示がおかしいよ！？</p></div>
<p>スタイルシートがうまく読み込めてないような状態。</p>
<p>理由はわかりませんが、親テーマのフォルダ下のcssを読みに行かないといけないところを、なぜか子テーマのフォルダの下を探して、「ファイルがない」という状態になっているようです。</p>
<h4 style="news_headline1">対処方法</h4>
<p>とりあえずの対応は以下の通り。</p>
<p>サーバ側で、以下の操作をしてください。</p>
<p><span class="su-highlight" style="background:#fffd99;color:#000000">&nbsp;ワードプレスインストールディレクトリ/wp-content/themes/chill_tcd016/admin ディレクトリを&nbsp;</span><br />
<span class="su-highlight" style="background:#fffd99;color:#000000">&nbsp;ワードプレスインストールディレクトリ/wp-content/themes/子テーマフォルダ 以下にコピーする。&nbsp;</span></p>
<p>さらにもう一個。</p>
<p><span class="su-highlight" style="background:#fffd99;color:#000000">&nbsp;ワードプレスインストールディレクトリ/wp-content/themes/chill_tcd016/japanese.cssを&nbsp;</span><br />
<span class="su-highlight" style="background:#fffd99;color:#000000">&nbsp;ワードプレスインストールディレクトリ/wp-content/themes/子テーマフォルダ 以下にコピーする。&nbsp;</span></p>
<p>ftpツールとか使ってもOK。</p>
<p>サーバ側の操作をよくわかっている人は「シンボリックリンク」を張ってもOKです。（本当はこれがベスト）</p>
<p>コマンドで書くとこんな感じ。</p>
<blockquote><p>サーバにログイン</p>
<p>cd  ワードプレスインストールディレクトリ/wp-content/themes/chill_tcd016</p>
<p>ln  -s  admin  ../子テーマフォルダ</p></blockquote>
<p>これ、TCD016Chillフォルダのadminフォルダを子テーマフォルダから読めるようにしたわけです。</p>
<p>これでとりあえず、子テーマ作っても「テーマオプション」画面がおかしくならない状態になりました。めでたしめでたし。</p>
]]></content:encoded>
			<wfw:commentRss>http://tcd016chill.sukkiris.com/tcd016-chill-de-ko-te-ma-tsuku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
