NEXTAGE(TCD021) TCD021
Q.トップページに表示される「トピックス」「プレスリリース」欄を非表示にしたい
A.下記phpファイルの該当箇所を削除してください
編集するファイル:index_template.php
削除する箇所:
トピックス
<!-- topics --> <div class="headline1 clearfix"> <h2><?php echo $options['index_headline_blog']; ?></h2> <?php if ($options['blogindex_url']) : ?> <div class="archive_btn"><a class="blendy" href="<?php esc_attr_e( $options['blogindex_url'] ); ?>"><?php _e("Older Posts","tcd-w"); ?></a></div> <?php endif; ?> </div> <ul class="top_list clear"> <?php $args = array('post_type' => 'post', 'numberposts' => 5); $index_recent_post=get_posts($args); if ($index_recent_post) : foreach ($index_recent_post as $post) : setup_postdata ($post); ?> <li><span><?php the_time('Y.m.d'); ?></span><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endforeach; else: ?> <li><?php _e("There is no registered post.","tcd-w"); ?></li> <?php endif; ?> </ul> <!-- /topics -->
プレスリリース
<!-- press release --> <div class="headline1"> <h2><?php echo $options['index_headline_news']; ?></h2> <div class="archive_btn"><a class="blendy" href="<?php echo get_post_type_archive_link('press'); ?>"><?php _e("Older News","tcd-w"); ?></a></div> </div> <ul class="top_list clear"> <?php $args = array('post_type' => 'press', 'numberposts' => 5); $news_post=get_posts($args); if ($news_post) : foreach ($news_post as $post) : setup_postdata ($post); ?> <li><span><?php the_time('Y.n.j'); ?></span><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endforeach; else: ?> <li><?php _e("There is no registered news.","tcd-w"); ?></li> <?php endif; ?> </ul> <!-- /press release -->
この記事は役に立ちましたか?
もし参考になりましたら、下のボタンで教えてください。
今後の記事作成の参考とさせて頂きます!
0