アフィンガー4 カスタマイズメモ書き
Affinger4導入時に設定しているカスタマイズ履歴のメモ書き
※同じ様に修正して何か問題があっても当方の責任ではないのであしからず・・・
外観→テーマの編集
☆検索結果の日付非表示
投稿ページの場合
single-type1.php
固定ページの場合
page.php
の
<div class="blogbox <?php st_hidden_class(); ?>">
<p><span class="kdate">
<?php if ( get_the_date() != get_the_modified_date() ) : //更新がある場合 ?>
<?php if ( isset($GLOBALS['stdata140']) && $GLOBALS['stdata140'] === 'yes' ) : ?>
投稿日:<?php echo esc_html( get_the_date() ); ?>
<?php endif; ?>
更新日:<time class="updated" datetime="<?php echo esc_attr( get_the_modified_date( DATE_ISO8601 ) ); ?>"><?php echo esc_html( get_the_modified_date() ); ?></time>
<?php else: //更新がない場合 ?>
投稿日:<time class="updated" datetime="<?php echo esc_attr( get_the_date( DATE_ISO8601 ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time>
<?php endif; ?>
</span></p>
</div>
|
を削除
☆記事下に表示されるPREV NEXTの非表示
single-type1.php
の
<!--ページナビ-->
<div class="p-navi clearfix">
<dl>
<?php
$prev_post = get_previous_post();
if ( !empty( $prev_post ) ): ?>
<dt>PREV</dt>
<dd>
<a href="<?php echo esc_url( get_permalink( $prev_post->ID ) ); ?>"><?php echo $prev_post->post_title; ?></a>
</dd>
<?php endif; ?>
<?php
$next_post = get_next_post();
if ( !empty( $next_post ) ): ?>
<dt>NEXT</dt>
<dd>
<a href="<?php echo esc_url( get_permalink( $next_post->ID ) ); ?>"><?php echo $next_post->post_title; ?></a>
</dd>
<?php endif; ?>
</dl>
</div>
|
を削除
☆カテゴリページの記事一覧の日付非表示
・サムネイルを表示している場合
itiran-thumbnail-on.php
・サムネイルを表示していない場合
itiran-thumbnail-off.php
の
<p><i class="fa fa-clock-o"></i>
<?php the_time( 'Y/m/d' ); ?>
<span class="pcone">
|
削除