Skip to content

Instantly share code, notes, and snippets.

@AlisonLapidus
AlisonLapidus / wp-config.php
Created February 9, 2016 19:21 — forked from bhubbard/wp-config.php
A Custom Template for wp-config.php.
<?php
################################################################################
// Custom WP-CONFIG Template.
################################################################################
################################################################################
// For Quick Client Reference
################################################################################
// Client Name:
// Salesforce URL:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsite.com','http://www.newsite.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsite.com', 'http://www.newsite.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.oldsite.com', 'http://www.newsite.com');
/* Column Classes
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css
--------------------------------------------- */
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
# Apache Server Config | MIT License
# https://gist.github.com/bhubbard/6082577
# Modified from https://github.com/h5bp/server-configs-apaches
# ##############################################################################
# # Default WordPress #
# ##############################################################################
# http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/
<IfModule mod_rewrite.c>
RewriteEngine On
/* -------------------------------------------------------- */
/* IDX BROKER WIDGET RESETS */
/* -------------------------------------------------------- */
/* SHOWCASE WIDGET
----------------------------------------------------------- */
.IDX-showcaseTable {
max-width: 100% !important;
}
.IDX-showcaseCell {
/* -------------------------------------------------------- */
/* IDX BROKER CUSTOM CSS */
/* -------------------------------------------------------- */
/* GLOBAL
----------------------------------------------------------- */
#IDX-main {width: 100% !important;}