Skip to content

Instantly share code, notes, and snippets.

@DavidV-WPCK
DavidV-WPCK / redoubt-options-panel-banners.php
Created April 26, 2014 17:44
You can create a custom a custom header banner and footer banner which will show on your theme option pages in admin. You must be running the ThemeBlvd WP JumpStart framework. Place this in your "functions.php" file. Recommended image size for header and footer is 780px wide, and height is up to you. To control exactly what theme admin module pa…
<?php
/*--------------------------------------------------------*/
/* Custom Theme Options Panel Banners for header/footer
/*--------------------------------------------------------*/
// Custom header banner
function wpckpro_redoubt_admin_module_header() {
$img_path = get_stylesheet_directory_uri() . '/assets/images/admin-top-banner.png'; // Modify this path and image name as needed.
echo '<img src="'.$img_path.'" />';
}
@DavidV-WPCK
DavidV-WPCK / wp-config.php
Created November 5, 2013 03:20
Extended wp-config.php file.
<?php
/**
* Custom configs "wp-config.php" file.
*/
/* MySQL settings */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST', 'localhost' );