Skip to content

Instantly share code, notes, and snippets.

@alexadark
alexadark / Functions.php
Created November 9, 2013 10:19 — forked from barbwiredmedia/Functions.php
Wordpress: breadcrumbs
//Bread crumbs created
function wordpress_breadcrumbs() {
$delimiter = '|';
$currentBefore = '<span class="current">';
$currentAfter = '</span>';
if ( !is_home() && !is_front_page() || is_paged() ) {
echo '<div id="crumbs">';
global $post;
if ( is_page() && !$post->post_parent ) {
echo $currentBefore;
/**
* Filter the genesis_seo_site_title function to use an image for the logo instead of a background image
*
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php
* @link http://blackhillswebworks.com/?p=4144
*
*/
add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 );
@alexadark
alexadark / 0_reuse_code.js
Created August 18, 2014 09:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/* -- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add to functions.php in a Genesis child theme
||||||||||||||||||||||||||||||||||||||||||||||||||||||| -- */
/**
============================================================
@alexadark
alexadark / class-custom-featured-post.php
Created July 20, 2017 18:49 — forked from srikat/class-custom-featured-post.php
Custom Featured Post Widget plugin: Skeleton for amending the output of the Genesis Featured Post widget.
<?php
/**
* Plugin Name
*
* @package Custom_Featured_Post_Widget
* @author Gary Jones
* @license GPL-2.0+
* @link http://gamajo.com/
* @copyright 2013 Gary Jones, Gamajo Tech
*/