Skip to content

Instantly share code, notes, and snippets.

View marisqaporter's full-sized avatar

marisqaporter

View GitHub Profile
@marisqaporter
marisqaporter / featured image on single posts on Genesis
Created April 11, 2015 04:26
featured image on single posts on Genesis
@marisqaporter
marisqaporter / square add to any
Created April 11, 2015 13:54
square add to any for my reference, from the plugin sharing add to any buttons
.a2a_svg, .a2a_count { border-radius: 0 !important; }
@marisqaporter
marisqaporter / innerdiv.php
Last active August 29, 2015 14:19
add an inner div to breadcrumb for styling and width control
/*add an inner div to breadcrumb for styling and width control*/
add_filter( 'genesis_breadcrumb_args', 'child_theme_breadcrumb_modifications' );
function child_theme_breadcrumb_modifications( $args ) {
$args['prefix'] = '<div class="breadcrumb"><div class="inner">';
$args['suffix'] = '</div></div>';
return $args;
}
@marisqaporter
marisqaporter / breadcrumbseparator.php
Last active August 29, 2015 14:19
Change the Genesis Breadcrumb Separator
<?php
//* Do NOT include the opening php tag
//* Change the breadcrumb separator
add_filter( 'genesis_breadcrumb_args', 'change_separator_breadcrumb' );
function change_separator_breadcrumb( $args ) {
$args['sep'] = ' &nbsp;&rsaquo;&nbsp; ';
return $args;
<?php
//* Do NOT include the opening php tag
//* Prefix author breadcrumb trail with the text 'Articles written by'
add_filter( 'genesis_breadcrumb_args', 'b3m_prefix_author_breadcrumb' );
function b3m_prefix_author_breadcrumb( $args ) {
$args['labels']['author'] = 'Articles written by ';
return $args;
@marisqaporter
marisqaporter / breadcrumb.css
Created April 20, 2015 20:08
Breadcrumb Css Edits
/**
*Breadcrumbs
*/
.breadcrumb .inner {
max-width:1200px;
margin:0 auto;
}
.breadcrumb a {
color:#70af00;
@marisqaporter
marisqaporter / google-font.php
Last active August 29, 2015 14:20
Google Font Enqueue
//* Enqueue Google Font - replace with your google font details on line 4
add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' );
function sp_load_google_fonts() {
wp_enqueue_style( 'google-font-montserrat', '//fonts.googleapis.com/css?family=Montserrat+Alternates:400,700|Montserrat:400,700', array(), get_template_directory_uri() . '/style.css' );
}
@marisqaporter
marisqaporter / stylesheet_enqueue.php
Created April 27, 2015 20:51
Enqueue custom style sheet for Genesis
//* Load custom style sheet - put custom.css in new /css folder inside theme folder or in root and remove /css from line 4
add_action( 'wp_enqueue_scripts', 'custom_load_custom_style_sheet' );
function custom_load_custom_style_sheet() {
wp_enqueue_style( 'custom-stylesheet', CHILD_URL . '/css/custom.css', array(), PARENT_THEME_VERSION );
}
@marisqaporter
marisqaporter / 0_reuse_code.js
Last active August 29, 2015 14:20
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
@marisqaporter
marisqaporter / footer.php
Created May 11, 2015 22:07
Footer - modify entire footer text, using Genesis Simple Edits Plugin. Paste this code into modify entire foot text space in admin panel after installing plugin. Click "modify entire footer text."