Skip to content

Instantly share code, notes, and snippets.

View kriot1's full-sized avatar

Katrina kriot1

View GitHub Profile
jQuery(document).ready(function($) {
var $filter = $('.nav-primary');
var $filterSpacer = $('<div />', {
"class": "filter-drop-spacer",
"height": $filter.outerHeight()
});
if ($filter.size())
{
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
add_action( 'wp_enqueue_scripts', 'riot_enqueue_script' );
function riot_enqueue_script() {
wp_enqueue_script( 'sticky-nav', get_bloginfo( 'stylesheet_directory' ) . '/js/sticky-nav.js', array( 'jquery' ), '', true );
}
//* Load Font Awesome
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' );
}
@kriot1
kriot1 / gist:dc4ef015193ab6c488b0
Last active February 25, 2016 08:50
htmlbasics.html
<!DOCTYPE html> – This shows your browser that you are using HTML5. Helpful info on the DOCTYPE declaration can be found here, but you don’t necessarily have to understand everything about this attribute.
<html> – This begins a series of nested HTML tags that make up your website.
<title> - Controls title on your browser bar
<head> – The “head” tag is where you can place tags such as your title, CSS stylesheet, and mobile view configuration codes.
<body> – The “body” tag consists of your content. Everything here will be visible on your page.
<h1>, <h2>, <h3> – Varying levels of headings
<p> – Paragraph
<a href=”URL”> – Hyperlink
<alt> – Alternative text for when element cannot be displayed
<strong> – Bold text
@kriot1
kriot1 / cta.css
Last active October 17, 2015 01:26
/* Call-to-action Menu Button
--------------------------------------------- */
.genesis-nav-menu li.cta a {
color: #fff;
background-color: #ffa4a3;
border-radius: 25px;
margin-left: 20px;
padding: 20px;
}
<h1></h1>
<h4></h4>
<a class="button" href="www.yoursitehere.com">Buy Now</a>
<h1 class="riot-signup"></h1>
<h4 class="riot-signup"></h4>
<div class="pricing-table"></div>