Skip to content

Instantly share code, notes, and snippets.

View jimboobrien's full-sized avatar

Jimobrien jimboobrien

View GitHub Profile
/*~~~~~~~~~~~~~
RESTART SERVICES
~~~~~~~~~~~~~~~*/
restart apache:
service named restart
OR
/scripts/restartsrv_apache
/* CHANGE URL IN DB */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~USE THIS ONE IN PHPMYADMIN ~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
UPDATE wp_posts set post_content=REPLACE(post_content, 'www.devServer.com/', 'www.liveServer.com/');
/* CUSTOM FIELDS INCLUDED */
UPDATE wp_postmeta SET meta_value= replace(meta_value, 'http://old-domain.com', 'http://new-domain.com');
/*========================================
CSS Resets
=========================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
/*****************************************************************************/
/**************VISIONQUEST CUSTOM FUNCTIONS***********************/
Use get_template_directory_uri() when working with theme
Use get_stylesheet_uri () when wrking with child theme
/******************************************************************************/
/**
* Proper way to enqueue scripts and styles in header as of Mar 2016
*/
function my_theme_scripts() {