twentysixteen_custom_header_sizes

過濾鉤子
apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px)
引數
  • (string) $custom_header_sizes sizes attribute for Custom Header. Default '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px'.
    Required:
定義位置
  • wp-content/themes/twentysixteen/header.php , line 96
相關勾子
twentysixteen_custom_header_argstwentyfifteen_custom_header_argstwentyseventeen_custom_header_argstwentyfourteen_custom_header_argstwentysixteen_custom_background_args
相關方法
get_custom_header_custom_logo_header_stylesget_custom_header_markuphas_custom_headerthe_custom_header_markupget_status_header_desc
引入
Twenty Sixteen 1.0
棄用
-

twentysixteen_custom_header_sizes – 該函式用於指定Twenty Sixteen主題中自定義頁首的可用尺寸: 該函式返回一個頭像尺寸選項陣列,每個選項代表一個不同的頭像尺寸,使用者可以從中選擇。

過濾預設的Twenty Sixteen自定義頁首尺寸屬性。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' );
$custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' );
$custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' );

常見問題

FAQs
檢視更多 >