Skip to content

Instantly share code, notes, and snippets.

View NatalieMac's full-sized avatar

Natalie NatalieMac

View GitHub Profile
<?php
function alphaindex_register_song() {
register_post_type('song', array(
'label' => 'Songs',
'menu_icon' => 'dashicons-format-audio',
'description' => '',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
<?php
function alphaindex_alpha_tax() {
register_taxonomy( 'alpha',array (
0 => 'song',
),
array( 'hierarchical' => false,
'label' => 'Alpha',
'show_ui' => false,
'query_var' => true,
'show_admin_column' => false,
<ul>
<?php wp_list_categories( array(
'taxonomy' => 'alpha',
'title_li' => ''
) ); ?>
</ul>
.photo-grid li:hover figcaption {
opacity: 1;
}
.photo-grid img {
display: block;
height: auto;
-webkit-transition: all 300ms;
-moz-transition: all 300ms;
transition: all 300ms;
max-width: 100%;
}
.photo-grid li:hover img {
.photo-grid figcaption p {
display: table-cell;
font-size: 1.5em;
position: relative;
top: -40px;
width: 289px;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
transition: all 300ms ease-out;
vertical-align: middle;
.photo-grid figcaption {
background: rgba(0,0,0,0.8);
color: white;
display: table;
height: 100%;
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
html {
font-size: 0.875em; /* 14 pixels */
}
@media (min-width: 30em) {
html {
font-size: 1em; /* 16 pixels */
}
}
p:first-of-type {
font-size: 1.125em;
}
p:first-of-type:first-line {
font-size: 1.125em;
font-style:italic;
}
p:first-of-type:first-letter {
@NatalieMac
NatalieMac / index.html
Created April 5, 2014 16:47
Link Location jQuery Plugin
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Link Location Plugin</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<h1>Here's a bunch of links</h1>