Skip to content

Instantly share code, notes, and snippets.

View GrantSmithDoddle's full-sized avatar
😆

Grant Smith GrantSmithDoddle

😆
View GitHub Profile
@bristlebird
bristlebird / category_submenu.html
Created September 24, 2019 17:09
Add category links as sub-menus to Perch CMS navigation
<!--*
// ====================================================================
// CATEGORY SUBMENU
// ====================================================================
// outputs set of category links for sub-menu (/perch/templates/categories/custom/category_submenu.html)
// called by perch_categories() in nav.php
*-->
<perch:before><ul class="sub-menu"></perch:before>
<li<perch:if id="catDepth" match="gt" value="1"> class="indent"</perch:if> ><a href="/<perch:category id="catPath" />"><perch:category id="catTitle" type="smarttext" /></a></li>
<perch:after></ul></perch:after>
@ohiosveryown
ohiosveryown / change-class-on-scroll.html
Last active May 9, 2024 16:56
Vanilla JS – change/add class based on scroll position.
// https://codepen.io/cmykw/pen/gemxJm
// layout
<nav/>
// style
<style>
body { min-height: 200vh; }
nav {
@neilgee
neilgee / horiz-subs.css
Last active April 29, 2017 07:51
Genesis SubMenu Horizontal
/* SubMenu > Sub Menu Vertical*/
.genesis-nav-menu .sub-menu .menu-item:hover > .sub-menu {
left: auto;
right: initial;
margin: initial;
}
.menu .sub-menu .menu-item > a:focus + ul.sub-menu,
@SiGaCode
SiGaCode / filter_post_title.php
Created March 1, 2015 12:07
Filter a genesis post/page title to add a span for styling (in single view). Goes to Dynamik Custom - Functions Credits: http://adamcap.com/code/filter-genesis-h1-post-titles-to-add-for-styling/
/**
* Filter Genesis H1 Post Titles to add <span> for styling
*
*/
add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 );
function ac_post_title_output( $title ) {
if ( is_singular() )
$title = sprintf( '<h1 class="entry-title"><span>%s</span></h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
return $title;
}
@cobaltapps
cobaltapps / Genesis-Dynamik Website Builder "Twitter Bootstrap" Column Class Styles
Created January 22, 2014 18:50
The are the Genesis "Twitter Bootstrap" Column Class Styles found in Dynamik Website Builder as of DWB version 1.4.2
/* Column Classes
--------------------------------------------- */
.five-sixths,
.four-sixths,
.four-fifths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
@cobaltapps
cobaltapps / Genesis-Dynamik Website Builder Column Class Styles
Created August 21, 2013 20:02
The are the Genesis Column Class Styles found in Dynamik Website Builder as of DWB version 1.2.2
/* Column Classes
------------------------------------------------------------ */
.five-sixths,
.four-fifths,
.four-sixths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,