Skip to content

Instantly share code, notes, and snippets.

View melissacabral's full-sized avatar

Melissa Cabral melissacabral

View GitHub Profile
jQuery(function( $ ){
$("header .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon-header"></div>');
$(".nav-primary .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon-nav"></div>');
$("#responsive-menu-icon-header").click(function(){
$("header .genesis-nav-menu").slideToggle();
});
$("#responsive-menu-icon-nav").click(function(){
$(".nav-primary .genesis-nav-menu").slideToggle();
@melissacabral
melissacabral / wp-theme-customization-functions.php
Created February 9, 2015 18:27
theme customization addition for functions
<?php
/**
* Customization API
*/
//add_action( 'customize_register', 'awesome_theme_customizer' );
//
function awesome_theme_customizer( $wp_customize ) {
//Link color
//create the setting and its defaults
$wp_customize->add_setting( 'awesome_link_color', array( 'default' => '#6bcbca', ));
@melissacabral
melissacabral / Comment Callback Function
Last active October 12, 2015 13:18
control what each comment looks like when wp_list_comments() runs. place in functions.php
/**
* Comments.php callback function
*/
//this will control what each comment looks like when wp_list_comments() runs.
function awesome_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
if ( 'div' == $args['style'] ) {
$tag = 'div';
@melissacabral
melissacabral / wordpress loop
Created November 7, 2012 16:59 — forked from monoooki/wordpress loop
wordpress loop desu.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
@melissacabral
melissacabral / wordpress loop
Created November 7, 2012 17:01
Basic wordpress loop
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- template tags and HTML go here, like this: -->
<h2><?php the_title(); ?></h2>
<?php endwhile; else:?>
<h2>Sorry, no posts found</h2>
<?php endif; ?>
@melissacabral
melissacabral / CPT Products CSS
Created November 8, 2012 18:44
Custom Post Type Products CSS additions
/*
== custom post type - PRODUCTS
*/
.archive-title{
margin:20px 47px;
font-size:30px;
text-align:center;
color:#CCC;
border-top: double 1px #EEE;
border-bottom: double 1px #EEE;
@melissacabral
melissacabral / HTML5 starter.html
Last active October 12, 2015 14:47
Simple HTML5 starting point for day 2 demo
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="description" content="DESCRIPTION" />
<title>SITE NAME - SITE DESCRIPTION</title>
<link rel="stylesheet" href="RESET_STYLESHEET_URL" media="screen" />
<link rel="stylesheet" href="STYLESHEET_URI" media="screen" />
</head>
@melissacabral
melissacabral / widget-thumbs-css
Last active October 13, 2015 00:38
Day 17 - Widget stylesheet
/*
stylesheet for recent posts plugin with thumbnails
*/
.products-widget img {
margin:0 0 10px 0;
}
.products-widget .readmore {
display:none;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
@melissacabral
melissacabral / glassbutton.css
Last active December 11, 2015 16:59
Glass Button CSS3 Demo for iw104
.glass {
display:inline-block;
margin:10px;
background-color:rgba(216,216,216,.07);
border:solid 1px rgba(0,0,0,.2);
padding:9px;
-webkit-border-radius: 50px;
border-radius: 50px;
-webkit-box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, .3);
box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, .3);