3. コンテンツのタイトルを消す [カスタムペイン]
カスタムペインを追加しているとコンテンツタイトルに迷ったり煩わしく感じることがあるのでそういう時は消してしまいます
[コンテンツHTML編集]
<div class="sidebar">
<h3 class="sidebar-title">
<% content.title | html %></h3>
<% content.header -%>
<div class="sidebar-body custom-body">
<% content.free.text | nl2br_filter %>
</div>
<% content.footer -%>
<div class="sidebar-end"></div>
</div>
↓
<div class="sidebar">
<% content.header -%>
<div class="sidebar-body custom-body">
<% content.free.text | nl2br_filter %>
</div>
<% content.footer -%>
<div class="sidebar-end"></div>
</div>
<h3 class="sidebar-title"> <% content.title | html %></h3>をすべて消すか<% content.title | html %>の部分を消去するだけでもタイトルは消えます
タグ:カスタムペイン
最新記事一覧
うなどん