Skip to content

Instantly share code, notes, and snippets.

@donaldG
donaldG / wp-config.php
Last active September 17, 2015 15:54
my ideal config file
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@donaldG
donaldG / functions.php
Last active August 29, 2015 14:04
Add a fixed background image for a mobile device in WordPress
<?php
/**
* This will be in the functions file of your theme
*/
// Add thumbnail support for site if it isn't there already
add_theme_support( 'post-thumbnails' );
// Set thumbnail size and cropping, this is the mobile image size I'm using
add_image_size( 'mobile', 800, 800, true );