• このエントリーをはてなブックマークに追加

関連記事

no image

(日本語) パーマリンク・スラッグなどURL カスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) jQueryをCDNから読み込む

Sorry, this entry is only available in 日本語.

Twenty Twelve | How to Remove "Leave a reply" under the post title

Twenty Twelve in 1.1 Introducing the way to remove "Leave a reply" which will take you to comment a

(日本語) 開発やテストに便利なプラグイン

Sorry, this entry is only available in 日本語.

(日本語) 「タグクラウド」ウィジェット カスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) 「カテゴリー」ウィジェット カスタマイズ

Sorry, this entry is only available in 日本語.

Twenty Twelve | How to change "Proudly powered by WordPress" for Copyright*

Twenty Twelve in 1.1 This post explains how to change the strings "Proudly ~" in footer element. J

(日本語) ナビゲーションメニューに検索フォームを追加

Sorry, this entry is only available in 日本語.

(日本語) "コメントを残す" 削除・文言を変更する方法

Sorry, this entry is only available in 日本語.

(日本語) Tumblrの投稿をウィジェットに表示できる「Tumblr Widget」

Sorry, this entry is only available in 日本語.

Comment

  1. コメント欄停止・コメント削除ですが

    設定>ディスカッション>新しい投稿へのコメントを許可する
    の方法もあります。

    サイトタイトルの横スペースにリンク集を入れる方法を教えてください。

    • コメントありがとうございます。
      いただいたコメントは「質問いただいた」と理解して
      (1) Twenty Thriteenで表示されるような検索フォームをTwentyTwelveに組み込みたい。
      (2) Twenty Twelveで表示されるような検索フォームをTwenty Thirteenに組み込みたい。
      どちらでしょうか?

      (2)の場合を試してみたあと、いただいた質問をよくよく読むと上の疑問がでてきました。
      ひとまず、(2)の場合は、これでいけるはずです...!
      ーー
      Twenty Thirteenでは検索フォームがHTML5対応されていますのでまずそれを外します。

      // 子テーマのfunctions.phpに追加
      function my_twentythirteen_setup() {
          remove_theme_support( 'html5');
          add_theme_support( 'html5', array(
              'comment-form', 'comment-list', 'gallery', 'caption'
          ));
      }
      add_action( 'after_setup_theme', 'my_twentythirteen_setup', 9999);
      

      あとは、子テーマのstyle.cssにTwentyTwelveのスタイルを追加

      /* 子テーマのstyle.cssに追加 */
      #s {
          border: 1px solid #ccc;
          border-radius: 3px;
          font-family: inherit;
          padding: 0.428571rem;
      }
      
      input#searchsubmit {
          background-color: #e6e6e6;
          background-image: -moz-linear-gradient(center top , #f4f4f4, #e6e6e6);
          background-repeat: repeat-x;
          border: 1px solid #d2d2d2;
          border-radius: 3px;
          box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
          color: #7c7c7c;
          font-size: 0.785714rem;
          font-weight: normal;
          line-height: 1.42857;
          padding: 0.428571rem 0.714286rem;
      }
      
    • 返信ありがとうございます!

      私がやりたいと思ったのは、(1)のほうです。
      分かりにくい文ですみませんでした。。

  2. "ヘッダー画像は、管理画面の「概観」→「ヘッダ」で設定できます。大きさを変更するには、add_theme_supportのcustom-headerに設定したい値を渡します"

Leave a Reply to kozuwe Cancel reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    PAGE TOP ↑