This page is to help you learn more about how to create the theme that best serves your project needs. Each of these resources can be used to augment the code. Think of it as a cookbook.
- Accessibility Coding Standard
- PHP Coding Standard
- HTML Coding Standard
- CSS Coding Standard
- JavaScript Coding Standard
- Theme Basics
- Template Files Section
- Theme Functionality
- Theme Options - The Customizer API
- Theme Security
- Advanced Theme Topics
- Releasing Your Theme
- List of Template Tags
- List of Conditional Tags
It's best practice to add theme support for the title-tag. However, If you don't want to use add_theme_supports for title-tag, you can add this snippet to your functions.php
<?php
if ( ! function_exists( '_wp_render_title_tag' ) ) {
function theme_slug_render_title() {
?><title><?php wp_title( ' | ', true, 'right' ); ?></title><?php
}
add_action( 'wp_head', 'theme_slug_render_title' );
}
?>
- Want to learn more about Favicons? Read Understanding the Favicon
- Favicon Generator - Supports many sizes