Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / Zurb Ink Newsletter HTML Mark up - wrapping container in full width
Created February 15, 2014 23:10
Zurb Ink Newsletter HTML MarkUp - wrapping a Containing Table in a Full Width Fluid Row
<body style="background:#b9e5ff;">
<table class="body" style="background:#b9e5ff;">
<tr>
<td class="center" align="center" valign="top">
<center>
<!-- Email Content starts-->
<table class="row header" bgcolor="#205D7A" style="background:#205D7A;"><!--full width row wrapper-->
<tr>
<td class="center" align="center">
<center>
@neilgee
neilgee / Zurb Ink Container Only Code
Created February 15, 2014 23:15
Zurb Ink Container Only (12 column) Mark Up
<table class="container"><!--start of container-->
<tr>
<td>
<table class="row">
<tr>
<td class="wrapper last">
<table class="twelve columns">
<tr>
<td>
content in here
/* Responsive Navigation
---------------------------------------------------------------------------------------------------- */
/* Standard Navigation
--------------------------------------------- */
nav {
clear: both;
}
@neilgee
neilgee / socialmenu.html
Last active March 28, 2021 23:21
FontAwesome Social Media Menu
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
<style>
.social-menu {
display: flex;
list-style-type: none;
}
.social-menu i {
color: #fff;
@neilgee
neilgee / double-header.php
Last active August 29, 2015 13:56
Genesis Header Widget Duplication on Condition
<?php
//Add in new Header Right area
function cgp_extra_widgets() {
genesis_register_sidebar( array(
'id' => 'HeaderRight2',
'name' => __( 'headerright2', 'genesischild' ),
'description' => __( 'This is the Header Right2 Position', 'genesischild' ),
) );
}
@neilgee
neilgee / cat-posts.php
Last active August 29, 2015 13:56
WordPress onPage Loop - Certain Cat Infinite Posts
<?php
// args
$args = array(
'cat' => 14,
'numberposts' => -1
);
// get results
$the_query = new WP_Query( $args );
// The Loop
?>
@neilgee
neilgee / faq.html
Last active November 17, 2022 03:56
FAQ Page with Show and Hide Questions and Answers
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Create an FAQ Page with Show and Hide Questions and Answers using jQuery</title>
<!-- jQuery -->
<script type="text/javascript" src="//code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
@neilgee
neilgee / WordPress Dashboard Menu Order
Created March 4, 2014 02:02
WordPress Dashboard Menu Order
0 - at the very top
5 - below Posts
10 - below Media
15 - below Links
20 - below Pages
25 - below comments
60 - below first separator
65 - below Plugins
70 - below Users
@neilgee
neilgee / favicon-genesis.php
Last active August 29, 2015 13:57
Genesis Favicon
<?php
function genesischild_favicon( $favicon_url ) {
return '/favicon.ico';
}
add_filter( 'genesis_pre_load_favicon', 'genesischild_favicon' );
@neilgee
neilgee / backstretch.js
Created March 6, 2014 06:17
Back Stretch
jQuery(document).ready(function($) {
// Create an array of images that you'd like to use
var images = [
'http://example.com/bg-home1.jpg',
'http://example.com/bg-home2.jpg',
'http://example.com/bg-home3.jpg'
];
// Get a random number between 0 and the number of images