This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//don't add the opening php | |
// goes inside functions.php file in a child GENESIS CHILD THEME ONLY | |
/*====== PAGE CHILDREN =================================================================================================================================================== | |
/* If the page has sub pages, those pages and the title of the parent page shows up as a menu in the sidebar (if there's a sidebar) | |
/* if the page is set to full width, then nope | |
/* @genesis_sidebar | |
/* ul child is .children | |
/* reference in part List topmost ancestor and its immediate children title on this page: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GOES IN functions.php file | |
/** | |
# --------------------------------------------------------------------------------------- | |
# load latest font awesome from cdn | |
# @since 1.0 | |
# --------------------------------------------------------------------------------------- | |
**/ | |
function latest_font_awesome() { | |
wp_enqueue_style( 'font-awesome-latest', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
add to functions.php in a Genesis child theme | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||| -- */ | |
/** | |
============================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Document */ | |
/* GWS - 12/2015 */ | |
body { | |
background-color: #FFF | |
} | |
h2, | |
h3 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// don't include this | |
/** ==================================================================================== | |
* | |
* Use any markup in Genesis example. Starting with the Genesis Sample. | |
* This example code goes in your child theme's | |
* functions.php file. NOTICE: that the id on the nav is #foo-nav | |
* if you use skip links (and you should) you will need to filter | |
* the genesis_skip_links_output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// don't include this | |
/** ==================================================================================== | |
* add skip links to new nav | |
* filter 'genesis_skip_links_output' to add new | |
* https://gist.github.com/carasmo/a988e9b4126cdb9f28e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width:600px) { | |
.hide-sm { | |
display:none; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(document, $, undefined) { | |
'use strict'; | |
$(document).ready(function() { | |
//* -------- smooth scroll to anchor links on click and load ---------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//don't include this | |
function author_posts_per_page( $query ) { | |
if (!is_admin() && is_author() ) | |
$query->set( 'posts_per_page', 5 ); | |
} |
OlderNewer