フォーラムへの返信

3件の返信を表示中 - 1 - 3件目 (全3件中)
  • トピック投稿者 hamada0203

    (@hamada0203)

    ありがとうございます!
    home.phpがないものと思って相談してしまっていました。。

    トピック投稿者 hamada0203

    (@hamada0203)

    コメントありがとうございます。

    index.phpの

    get_template_part( ‘content

    の部分を以前修正した時は変化がなかったんですが

    home.phpがあり、ここにも同じ記述があったのを見落としていました。。

    home.phpを削除し、content.phpに記述していた内容をindex.phpからトップページ表示することができました。

    サポートしていただき、ありがとうございました!

    トピック投稿者 hamada0203

    (@hamada0203)

    コメントありがとうございます。

    index.phpには 「page_front-page.php」 の記述はありませんでしたが、

    テーマのカスタマイズで
    「テーマは固定フロントページをサポートしています。」
    とありました。

    (index.php)
    <?php get_header(); ?>
    <?php do_action(‘sydney_before_content’); ?>

    <div id=”primary” class=”content-area col-md-9″>
    <main id=”main” class=”post-wrap” role=”main”>
    <?php if ( have_posts() ) : ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php
    /* Include the Post-Format-specific template for the content.
    * If you want to override this in a child theme, then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    */
    get_template_part( ‘content’, get_post_format() );
    ?>

    <?php endwhile; ?>

    <?php the_posts_navigation(); ?>

    <?php else : ?>

    <?php get_template_part( ‘content’, ‘none’ ); ?>

    <?php endif; ?>–>
    </main><!– #main –>
    </div><!– #primary –>

    <?php do_action(‘sydney_after_content’); ?>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

3件の返信を表示中 - 1 - 3件目 (全3件中)