Skip to content

Instantly share code, notes, and snippets.

/* default styling for small screens */
body, header, .main, footer {
margin: 0 auto;
}
/* media queries */
@media screen and ( min-width: 401px ) {
footer.widget-area {
width: 49%;
margin-right: 2%;
/* default styling for desktop */
body, header, .main, footer {
width: 96%;
max-width: 1200px;
margin: 0 auto;
}
.content {
width: 60%;
float: left;
margin-right: 5%;
define( 'WP_AUTO_UPDATE_CORE', true );
function child_function() {
// Contents for your function here.
}
add_action( 'init', 'child_function', 30 );
function parent_function() {
// Contents for your function here.
}
add_action( 'init', 'parent_function', 20 );
remove_action( 'init', 'parent_function' );
<?php
if ( ! function_exists ( 'my_function' ) ) {
function my_function() {
// Contents of your function here.
}
}
?>
include( get_stylesheet_directory() . '/includes/theme_setup.php' );
/**********************************************************************************
wpmu_theme_setup - sets up themes
- adds theme support for post formats, post thumbnails, HTML5 and automatic feed links
- registers a translation file
- registers navigation menus
**********************************************************************************/
function wpmu_theme_setup() {
/*******************************
Start by adding theme support