Skip to content

Instantly share code, notes, and snippets.

@clare485
clare485 / local-config.php
Created July 26, 2013 16:01
local-config.php
<?php
define('DB_NAME', 'hillmath');
/** MySQL database username */
define('DB_USER', 'firstfound');
/** MySQL database password */
define('DB_PASSWORD', 'firstfound');
/** MySQL hostname */
define('DB_HOST', 'wiki.firstfound.local');
/** Database Charset to use in creating database tables. */
@clare485
clare485 / wordpress cheatsheet - commonly used code.php
Created July 18, 2013 14:15
wordpress cheatsheet - commonly used code
<?php echo get_site_url(); ?>
<?php echo get_stylesheet_directory_uri(); ?>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/image-brochure.png" alt=""/>
@clare485
clare485 / new_gist_file
Created June 13, 2013 09:18
theme options examples
// Test data
$test_array = array(
'one' => __('One', 'options_framework_theme'),
'two' => __('Two', 'options_framework_theme'),
'three' => __('Three', 'options_framework_theme'),
'four' => __('Four', 'options_framework_theme'),
'five' => __('Five', 'options_framework_theme')
);
// Multicheck Array
@clare485
clare485 / placeholder in input for mailchimp widget
Created June 11, 2013 10:19
placeholder in input for mailchimp widget
//add placeholder for subscribe form
$(".mc_input").focus(function(){
showEmptyLabels();
$(this).siblings("label").stop().fadeOut();
});
$(".mc_input").blur(function(){
showEmptyLabels();
});
$(".mc_merge_var label").bind("click", function() {
$(this).siblings("div").find("input, textarea").focus();
<?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
<?php
/* Remove Parent Theme Foundation Files */
wp_deregister_style("foundation-app");
wp_deregister_script("foundation-reveal");
wp_deregister_script("foundation-orbit");
wp_deregister_script("foundation-custom-forms");
wp_deregister_script("foundation-placeholder");
wp_deregister_script("foundation-tooltips");
wp_deregister_script("foundation-app");
wp_deregister_script("foundation-off-canvas");