Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
jennimckinnon / full-width.php
Created January 28, 2015 20:53
Header of a full width template I'm editing for a WordPress theme.
<?php
/*
Template Name: Full Width
*/
get_header(); ?>
@jennimckinnon
jennimckinnon / full-width.php
Last active August 29, 2015 14:14
Part of a full width template I am creating from a page.php template in WordPress.
<div id="primary" class="content-area sixteen columns">
<main id="main" class="site" role="main">
<?php get_template_part( 'content/content', 'page' ); ?>
<div class="container">
<div class="row">
<div id="primary" class="col-sm-4 col-md-6 col-lg-4">
#content {
-webkit-column-count: 4; /* Chrome, Safari, Opera */
-moz-column-count: 4; /* Firefox */
column-count:41;
}
#content {
-webkit-column-width: 300px; /* Chrome, Safari, Opera */
-moz-column-width: 300px; /* Firefox */
column-width: 300px;
}
#content {
float:left;
}
#content {
clear: both;
}
@jennimckinnon
jennimckinnon / appointment-booking
Last active August 29, 2015 14:15
Example custom appointment booking page structure using the Appointments + plugin by WPMU DEV.
<h1>Book Your Consultation</h1>
<p>You can add a bit of info here to to briefly describe the booking process and how it can be done automatically, right now.</p>
<h2>Step One:</h2>
<h3>Select the type of consultation you want below.</h3>
[app_services]
<h2>Step Two:</h2>
<h3>Select the date and time of the consultation below, then fill out your basic info, followed by clicking the "please click here to confirm your appointment" button. If you're a member, you can login below.</h3>
@jennimckinnon
jennimckinnon / Email Confirmation
Created February 10, 2015 22:36
An example of an email confirmation for the Appointments + plugin by WPMU DEV.
<p>Dear CLIENT,</p>
<p>I'm delighted to confirm your consultation with me, Jane Doe on SITE_NAME.</p>
<p>Here are your consultation details:
<br>Your Session Type: SERVICE
<br>Date and time: DATE_TIME (Your timezone here)</p>
<p><strong>IMPORTANT:</strong></p>
@jennimckinnon
jennimckinnon / functions.php
Created February 12, 2015 08:40
Registering a new menu in WordPress.
function register_my_menu() {
register_nav_menu('new-menu',__( 'New Menu' ));
}
add_action( 'init', 'register_my_menu' );
@jennimckinnon
jennimckinnon / functions.php
Last active January 2, 2017 03:03
An example of registering multiple menus in WordPress.
function register_my_menus() {
register_nav_menus(
array(
'new-menu' => __( 'New Menu' ),
'another-menu' => __( 'Another Menu' ),
'an-extra-menu' => __( 'An Extra Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );