This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSH into your server then navigate to your domain’s web root: | |
cd /var/www/domain/public/htdocs | |
Grab the latest WordPress install: | |
wget http://wordpress.org/latest.tar.gz | |
Get the files out of the archive: | |
tar xfz latest.tar.gz | |
Navigate to the wordpress folder: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE wp_posts SET 'post_content' | |
= REPLACE ('post_content', | |
'OriginalText', | |
'ReplacedText'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin font-size($size, $base:16) { | |
font-size: $size + px; | |
font-size: $size/$base * 1rem; | |
} | |
@include font-size(32); | |
p { | |
font-size: 32px; | |
font-size: 2rem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin font-size($sizeValue: 16, $line: $sizeValue * 1.4) { | |
font-size: ($sizeValue) + px; | |
line-height: ($line) + px; | |
font-size: ($sizeValue / 16) + rem; | |
line-height: ($line / 16) + rem; | |
} | |
@include font-size(32); | |
p { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add to functions.php | |
function page_me($path) { | |
$post = get_page_by_path($path); | |
$content = apply_filters('the_content', $post->post_content); | |
echo $content; | |
} | |
//Add to template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add to wp-config.php | |
define('WP_DEBUG', true); | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors', 0); | |
//Writes to wp-content/debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php query_posts('page_id='); | |
if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php echo the_content(); endwhile; ?> | |
<?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('.rdm').hide(); | |
var elements = $('.rdm'); | |
var elementCount = elements.size(); | |
var elementsToShow = 5; | |
var alreadyChoosen = ","; | |
var i = 0; | |
while (i < elementsToShow) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include Gulp and plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-rimraf'), |
OlderNewer