Skip to content

Instantly share code, notes, and snippets.

@huwrowlands
huwrowlands / CPT - Services
Created August 24, 2014 21:49
CPT - Services
<?php
// Register Custom Post Type
function register_services_post_type() {
$labels = array(
'name' => _x( 'Services', 'Post Type General Name', 'weaver' ),
'singular_name' => _x( 'Service', 'Post Type Singular Name', 'weaver' ),
'menu_name' => __( 'Services', 'weaver' ),
'parent_item_colon' => __( 'Parent Service:', 'weaver' ),
'all_items' => __( 'All Services', 'weaver' ),
@huwrowlands
huwrowlands / CPT - Case Studies
Created August 24, 2014 21:49
CPT - Case Studies
<?php
// Register Custom Post Type
function register_case_studies_post_type() {
$labels = array(
'name' => _x( 'Case Studies', 'Post Type General Name', 'weaver' ),
'singular_name' => _x( 'Case Study', 'Post Type Singular Name', 'weaver' ),
'menu_name' => __( 'Case Studies', 'weaver' ),
'parent_item_colon' => __( 'Parent Case Study:', 'weaver' ),
'all_items' => __( 'All Case Studies', 'weaver' ),
<?php
// Register Custom Post Type
function register_resources_post_type() {
$labels = array(
'name' => _x( 'Resources', 'Post Type General Name', 'weaver' ),
'singular_name' => _x( 'Resource', 'Post Type Singular Name', 'weaver' ),
'menu_name' => __( 'Resources', 'weaver' ),
'parent_item_colon' => __( 'Parent Resource:', 'weaver' ),
'all_items' => __( 'All Resources', 'weaver' ),
/** I added updated code to Lines 147 & 164 **/
header.navigation {
$navigation-padding: 1em;
$navigation-background: $dark-gray;
$navigation-color: transparentize(white, 0.3);
$navigation-color-hover: white;
$navigation-height: 60px;
$navigation-nav-button-background: $base-accent-color;
$navigation-nav-button-background-hover: lighten($navigation-background, 10);
$navigation-nav-button-border: 1px solid lighten($navigation-nav-button-background, 20);