WordPressadd_theme_support()


Introduction

This function registers features that the theme supports.

Syntax

  • add_theme_support( $feature )

Parameters

ParameterDetails
$feature(string) The feature being added.

Remarks

List of features to be used in $feature:

  • 'post-formats'
  • 'post-thumbnails'
  • 'html5'
  • 'custom-logo'
  • 'custom-header-uploads'
  • 'custom-header'
  • 'custom-background'
  • 'title-tag'
  • 'starter-content'