Skip to content

Instantly share code, notes, and snippets.

@robincornett
robincornett / archive-product.php
Last active August 17, 2017 16:50
Sample simple shop setup with a flexible grid
<?php
/**
* Archive page for products (custom post type).
*
*/
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
@billerickson
billerickson / sidebar.js
Created December 12, 2012 18:02
Make sidebar as tall as content (might need to tweak the numbers based on your padding)
jQuery(document).ready(function($){
var sidebarHeight = $("#sidebar").height() - 50;
var bodyHeight = $("#content-sidebar-wrap").height();
if (bodyHeight > sidebarHeight) {
$("#sidebar").css( 'min-height', bodyHeight + 50 );
$("#content-sidebar-wrap").css( 'min-height', bodyHeight + 50 );
};
});
@jonathonbyrdziak
jonathonbyrdziak / CitiesArray.php
Created August 18, 2010 20:28
Cities Array :: An array of USA cities, as of April 2010
array(
'ALABAMA'=>
array('ABBEVILLE','ADAMSVILLE','ADDISON','AKRON','ALABASTER','ALBERTVILLE','ALEXANDER CITY','ALEXANDRIA','ALICEVILLE','ALLGOOD','ALTOONA','ANDALUSIA','ANDERSON','ANNISTON','ARAB','ARDMORE','ARGO','ARITON','ARLEY','ASHFORD','ASHLAND','ASHVILLE','ATHENS','ATMORE','ATTALLA','AUBURN','AUTAUGAVILLE','AVON','BABBIE','BAILEYTON','BANKS','BAY MINETTE','BAYOU LA BATRE','BEAR CREEK','BEATRICE','BEAVERTON','BELK','BENTON','BERRY','BESSEMER','BILLINGSLEY','BIRMINGHAM','BLACK','BLOUNTSVILLE','BLUE MOUNTAIN','BLUE RIDGE','BLUE SPRINGS','BOAZ','BOLIGEE','BON AIR','BRANCHVILLE','BRANTLEY','BRENT','BREWTON','BRIDGEPORT','BRIGHTON','BRILLIANT','BROOKSIDE','BROOKWOOD','BRUNDIDGE','BUTLER','BYNUM','CAHABA HEIGHTS','CALERA','CAMDEN','CAMP HILL','CARBON HILL','CARDIFF','CAROLINA','CARROLLTON','CASTLEBERRY','CEDAR BLUFF','CENTER POINT','CENTRE','CENTREVILLE','CHALKVILLE','CHATOM','CHELSEA','CHEROKEE','CHICKASAW','CHILDERSBURG','CITRONELLE','CLANTON','CLAY','CLAYHATCHEE','CLAYTON','CLEVELAND','CLIO','COALING',