Hi, in Develop theme header of WordPress post I am going to show you how to develop a custom header.php or common header for WordPress theme from an HTML pice saved as header.php
First I am describing the code should be used for header portion and then will show a sample header code with HTML
- The code or function
>
is used in the starting HTML tag for the language of the site. is used to get the HTML default charset.
is used to get the page title according to the site name and page name and description.is used for getting the theme defining style.css file which is located in the theme root folder.
is used to get the pingback URL
is used to get the default header portion as CSS some js of WordPress.
is used to define the unit body class for each page it also generated some default classes of WordPress body.
- To include the other CSS located in the theme directory include theme style.css which is located in the root directory of the theme defining the theme. Or place
to give the theme URL or its links.
Now the sample code
>>
in this post, you have learned how to develop a custom header.php or common header for WordPress theme,
In our next post will learn how to define menus in functions.php and used them in frontend and make them dynamic.