We all know it's a bad idea to customize the default WordPress theme templates because when updating it would wipe out your edits. Instead, we create a child theme. To do this, first we create a new theme folder. Then comes the CSS style.css file with the following meta comment at the top, followed by … Continue reading How to Create a 2012 Child Theme in WordPress
Tag: style.css
Adding CSS to WordPress Theme Via functions.php File
One of the incorrect way theme developers add their CSS to their theme is via the bloginfo('stylesheet_url'); tag in the header.php. This is a bad idea. A better way to do this is via the functions.php file, much in the same way you properly link to JavaScript files a WordPress theme. Here is the code … Continue reading Adding CSS to WordPress Theme Via functions.php File
style.css Comment Code for Twenty Twelve Theme
/* Theme Name: Twenty Twelve Theme URI: http://wordpress.org/extend/themes/twentytwelve Author: the WordPress team Author URI: http://wordpress.org/ Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single … Continue reading style.css Comment Code for Twenty Twelve Theme