フォーラムへの返信

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

    (@lumierece)

    @ishitaka
    https://wpdocs.osdn.jp/Twenty_Fourteen

    できました!ありがとうございました!!!

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka

    ご検証までいただきありがとうございました。
    既存投稿をブログのトップに固定という設定をしてグリッドに表示させようとしていますが、いまだにグリッド数が増えません・・・。キャッシュの問題と思い、スーパーリロードもしましたができませんでした。

    lumierece

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka ありがとうございました。試したのですが、だめみたいです・・・。

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka-sama,

    大変お世話になっております。
    featured-content.phpというのがありますが、関係ありますか??下記コピペしました。

    <?php
    /**
    * The template for displaying featured content
    *
    * @package WordPress
    * @subpackage Twenty_Fourteen
    * @since Twenty Fourteen 1.0
    */
    ?>

    <div id=”featured-content” class=”featured-content”>
    <div class=”featured-content-inner”>
    <?php
    /**
    * Fires before the Twenty Fourteen featured content.
    *
    * @since Twenty Fourteen 1.0
    */
    do_action( ‘twentyfourteen_featured_posts_before’ );

    $featured_posts = twentyfourteen_get_featured_posts();
    foreach ( (array) $featured_posts as $order => $post ) :
    setup_postdata( $post );

    // Include the featured content template.
    get_template_part( ‘content’, ‘featured-post’ );
    endforeach;

    /**
    * Fires after the Twenty Fourteen featured content.
    *
    * @since Twenty Fourteen 1.0
    */
    do_action( ‘twentyfourteen_featured_posts_after’ );

    wp_reset_postdata();
    ?>
    </div><!– .featured-content-inner –>
    </div><!– #featured-content .featured-content –>

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka-sama,

    このような記載がありました。functions.phpファイルの子テーマは、親テーマファイルの前に含まれていますので、子テーマファンクションが使用されます。ヒントになればと思い下にコピペいたしました。大変お手数おかけしておりますが、何卒よろしくお願いいたします。
    *
    * When using a child theme you can override certain functions (those wrapped
    * in a function_exists() call) by defining them first in your child theme’s
    * functions.php file. The child theme’s functions.php file is included before
    * the parent theme’s file, so the child theme functions would be used.

    lumierece

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka-sama,

    昨晩は夜分遅くにご回答いただきありがとうございました。
    私は、wordpress.comのtwentyfourteenのテーマをテーマエディターで追記したのですが、functions.phpの子テーマに追記するのは、単にfuntions.phpをテーマエディターで開いて、最後の行にご説明通りにコピペすればよかったのでしょうか?いまいち子テーマと親テーマの意味が分かっていません。ご教示お願いいたします。サイトはいまだに6グリッドになっています。12にしたいです。

    何卒宜しくお願いいたします。
    lumierece

    トピック投稿者 lumierece

    (@lumierece)

    @ishitaka-san,

    ご返信、ご回答ありがとうございました。functions.phpに追記はできたのですが、最後のテーマをいったん親テーマに切り替え、再度子テーマに切り替えるという意味が分かりません。キャッシュをクリアするスーパーリロード(Shift+リロードボタン)もしましたし、ブラウザのキャッシュもクリアしてみましたが、反映されていません。こちらの意味をご教示願えますでしょうか?

    構築サイト: https://my-healthcares.com/

    宜しくお願いいたします。
    lumierece

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