December 2017
Beginner
458 pages
7h 52m
English
We will create a function to set up certain support for our theme. For instance, to be able to use the featured image or thumbnails. In function.php, we'll add a comment Theme Support and declare the theme_setup function as shown here:
<?php// Theme Supportfunction theme_setup(){}
Now, when we go to a post as shown in the following screenshot, we don't have a Featured Image box below the Tags section. That's what we will add inside the function:

To set up the featured image support, we'll add add_theme_support inside the theme_setup function. Then, inside the parentheses, we will add post-thumbnails as shown ...
Read now
Unlock full access