twentyseventeen_content_width

過濾鉤子
apply_filters( 'twentyseventeen_content_width', $content_width )
引數
  • (int) $content_width Content width in pixels.
    Required:
定義位置
  • wp-content/themes/twentyseventeen/functions.php , line 282
相關勾子
twentysixteen_content_widthtwentynineteen_content_widthtwenty_twenty_one_content_widthtwentyseventeen_starter_contenttwentyseventeen_front_page_sections
相關方法
get_the_content_feedget_the_contentthe_content_feedfeed_content_typeget_media_embedded_in_contentget_theme_starter_content
引入
Twenty Seventeen 1.0
棄用
-

twentyseventeen_content_width: 這是一個過濾鉤子,允許開發者改變二十七主題中內容區的最大寬度。

過濾Twenty Seventeen主題的內容寬度。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$GLOBALS['content_width'] = apply_filters( 'twentyseventeen_content_width', $content_width );
$GLOBALS['content_width'] = apply_filters( 'twentyseventeen_content_width', $content_width );
$GLOBALS['content_width'] = apply_filters( 'twentyseventeen_content_width', $content_width );

常見問題

FAQs
檢視更多 >