Set up project:
mkdir project
cd project
npm init -y
/** | |
** facet classes | |
**/ | |
.facetwp-facet { | |
/* class of div that wraps each facet type */ | |
} | |
.facetwp-facet-FACET-NAME { | |
/* class for a facet where facet name is FACET-NAME, applied to same div as .facetwp-facet */ | |
} |
<?php | |
/** | |
* | |
* Infinite Scroll | |
* | |
* @since 1.0.0 | |
* | |
* @author Lauren Gray | |
* @author Bill Erickson |
// https://css-tricks.com/responsive-data-tables/ | |
// https://css-tricks.com/examples/ResponsiveTables/responsive.php | |
// http://elvery.net/demo/responsive-tables/ | |
.no-more-tables-container { | |
@mixin no-more-tables-mixin { | |
// Force table to not be like tables anymore | |
table, thead, tbody, th, td, tr { | |
display: block; | |
} |
/** | |
* Remove Rev Slider Metabox | |
*/ | |
if ( is_admin() ) { | |
function remove_revolution_slider_meta_boxes() { | |
remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' ); | |
remove_meta_box( 'mymetabox_revslider_0', 'post', 'normal' ); | |
remove_meta_box( 'mymetabox_revslider_0', 'YOUR_CUSTOM_POST_TYPE', 'normal' ); | |
} |
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. 🐬
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
$(document).bind('cbox_complete', function(){ | |
if($('#cboxTitle').height() > 20){ | |
$("#cboxTitle").hide(); | |
$("<div>"+$("#cboxTitle").html()+"</div>").css({color: $("#cboxTitle").css('color')}).insertAfter("#cboxPhoto"); | |
$.fn.colorbox.resize(); | |
} | |
}); |