General Content Width Feed Links Formats Thumbnails Background Header Markup Title Tag Editor Style Translation Overview Use this tool to create custom code for Theme Features with add_theme_support() function. Usage Fill in the user-friendly form. Click the “Update Code” button. Copy the code to your project. Or save it as a snippet and share with the community. Examples If you are still learning how to use this tool, check out the following examples: Image Thumbnails Custom Background Custom Header Function Name The function used in the code. Child Themes Yes No Add Child Themes Support. Content Width Yes No Enable Content Width definition. Maximum allowed width for content in the theme. Width px Set up the content width value (px) based on the theme's design. Automatic Feed Links Yes No Enable Automatic RSS Feed Links for post and comment in HTML <head>. Formats Yes No Enable Post Formats to customize the content presentation in the theme. Supported Formats Status Quote Gallery Image Video Audio Link Aside Chat Image Thumbnails Yes No Enable Featured Image support. Post Types Posts Custom Apply thumbnails for those post types Custom Types Comma separated list of Post Types. Set Custom Dimensions Yes No Set custom width and height for thumbnails. Thumbnail Dimensions Custom image width and height. Custom Background Yes No Enable Custom Background support Default Color Set default background color. Default Image Set default background image Default Image repeat Set default background image repeat. Default Image position-x Set default background image position-x. Head Callback WordPress head callback function. Admin Head Callback Admin head callback function. Admin Preview Callback Admin preview callback function. Custom Header Yes No Enable Custom Header image support. Default Image Default header image. Full URL. Image Dimensions Header image width & height. Flexible Dimensions Yes No Yes No Allow flexible width & height. Upload Other Images Yes No Allow to upload other header images. Random Image Rotation Yes No Allow random image rotation. Header Text Yes No Display default header text. Header Text Color Default header text color. Head Callback WordPress head callback function. Admin Head Callback Admin head callback function. Admin Preview Callback Admin preview callback function. Video Yes No Support custom videos as headers. Video Callback Callback used to determine whether the video should be shown for the current request. Semantic Markup Yes No Enable Semantic Markup to improve theme HTML5 markup. Markup For Search Form Comment Form Comment List Gallery Caption Title Tag Yes No Enable Title Tag support in HTML . TinyMCE Editor Style Yes No Enable TinyMCE Editor Style to customize the content presentation in the visual editor. Stylesheet File Path to the stylesheet file, relative to the theme directory. Set Theme Translation File Yes No Enable internationalization. Text Domain Unique identifier for retrieving translated strings. Text Domain Path The directory where the .mo file can be found. Update Code Save Snippet
// Set content width value based on the theme's design if ( ! isset( $content_width ) ) $content_width = 600;