This file contains 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
vagrant plugin install vagrant-hostsupdater | |
vagrant plugin install vagrant-triggers |
This file contains 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 | |
add_post_meta( get_the_ID(), 'checked_by_ceo', true, true ); | |
?> |
This file contains 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
<div class='post' id='post-23'> | |
<h2><?php the_title() ?></h2> | |
<div class='excerpt'> | |
<?php | |
$content = get_the_content(); | |
if( strlen($content) < 250 ) { | |
echo $content; | |
} | |
else { | |
$content = substr( $content, 0, 250 ); |
This file contains 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
wp_deregister_script( 'jquery' ); |
This file contains 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
/* Regular jQuery */ | |
$('.hideable').on('click', function() { | |
$(this).hide(); | |
}) | |
/* Compatibility Mode */ | |
jQuery('.hideable').on('click', function() { | |
jQuery(this).hide(); | |
}) |
This file contains 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json') | |
}); | |
grunt.registerTask('default', [] ); | |
}; |
This file contains 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
gulp.task('default', ['scripts', 'styles']); |
This file contains 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_action( 'admin_enqueue_scripts', 'gt_post_list_style' ); | |
function gt_post_list_style() { | |
$screen = get_current_screen(); | |
if( 'edit-post' == $screen->id ) { | |
wp_enqueue_style( 'gt-post-list-style', get_stylesheet_directory_uri() . '/post-list.css' ); | |
} | |
} |
This file contains 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
function my_tracking_code() { | |
echo 'Paste tracking code from Google Analytics here'; | |
} | |
add_action( 'wp_footer', 'my_tracking_code' ); |
This file contains 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
#page:before { | |
margin:21px; | |
background-image: url("images/new_year_background.png"); | |
position:fixed; | |
top:0px; | |
left:0px; | |
width:100%; | |
height:100%; | |
display:block; | |
content: " "; |