Skip to content

Instantly share code, notes, and snippets.

View Quay3's full-sized avatar

Quay3

  • Saturday Drive
View GitHub Profile
@Quay3
Quay3 / gist:9a0be3f933d40f332a1b
Created August 13, 2015 15:00
Child Theme Gist 1
/*
Theme Name: Twenty Fifteen Child
Theme URI: http://yoursite.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: Gandalf
Author URI: http://yoursite.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@Quay3
Quay3 / gist:19e4f3fc8c65d84be366
Created August 13, 2015 15:02
Child Theme Gist 2
function enqueue_parent_theme_style() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
@Quay3
Quay3 / gist:3e26166de5fa5ce9e1e5
Created August 13, 2015 15:04
Custom Post Meta 1
echo get_post_meta( get_the_ID(), 'key', true );
@Quay3
Quay3 / gist:a45b8deed5234ea144fd
Created August 13, 2015 15:05
Custom Post Meta 2
echo get_post_meta( get_the_ID(), 'test', true );
<img src="http://anotherwebsite.com/image.jpg" height="1080" width="1920">
# Begin HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourwebsite.com/$1 [R,L]
</IfModule>
# END HTTPS
#nf-field-443{
margin-top: 37px;
}