ギャラリーの横幅を大きくする

wp-content/themes/twentyten/functions.phpを編集

/*
 * Set the content width based on the theme’s design and stylesheet.
 *
 * Used to set the width of images and content. Should be equal to the width the theme
 * is designed for, generally via the style.css stylesheet.
 */
if ( ! isset( $content_width ) )
    $content_width = 860; /* 内容部分の横幅の設定 */

/* Tell WordPress to run twentyten_setup() when the ‘after_setup_theme’ hook is run. */
add_action( ‘after_setup_theme’, ‘twentyten_setup’ );

これでギャラリーの横幅が大きくなる。

フジマル について

1947年生れ、東京電機大学二部電気通信工学科卒、最後はスリランカ航空で営業だったのですが2018年に㈱インパック・ジャパンに再就職。趣味:登山、スキー、車いじり、コンピューター
カテゴリー: WordPress関連メモ パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください