ワードプレス:テーマオプションの項目を増やす
子テーマの「functions.php」に
/* フロントページセクションの数を設定 */
function
my_front_page_sections() {
return
6;
}
add_filter(
'twentyseventeen_front_page_sections'
,
'my_front_page_sections'
);
を追加すると増える。
子テーマの「functions.php」に
/* フロントページセクションの数を設定 */
function
my_front_page_sections() {
return
6;
}
add_filter(
'twentyseventeen_front_page_sections'
,
'my_front_page_sections'
);