Skip to content

Instantly share code, notes, and snippets.

@lindseyriel
lindseyriel / gist:c713cd128a7fe2e181360ec0bb84d060
Created March 25, 2019 15:04
Add Date to Primary Navigation Bar
//* Add Date to Primary Navigation
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
function theme_menu_extras( $menu, $args ) {
//* Change 'primary' to 'secondary' to add extras to the secondary navigation menu
if ( 'primary' !== $args->theme_location )
return $menu;
$menu .= '<li class="right date">' . date_i18n( get_option( 'date_format' ) ) . '</li>';
return $menu;
@lindseyriel
lindseyriel / Use Shortcodes in Genesis Archive Descriptions
Last active June 8, 2018 13:56
Use Shortcodes in Genesis Archive Descriptions
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );
add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode' );
.woocommerce-checkout label.checkbox:after {
content: "and acknowledge I need the genesis framework for my theme to function. I also acknowledge that upon purchase I will be subscribed to the mailing list, but have the option to opt-out at anytime.";
}
@lindseyriel
lindseyriel / gist:c3f8dfe761e73840f3cd765b76cf4caf
Created February 17, 2018 22:25
WooCommerce Pagination Fix CSS
nav.woocommerce-pagination {
display: block !important;
position: relative;
}
@lindseyriel
lindseyriel / gist:40080a8bf579018ee96b72cc9ba7635f
Created February 17, 2018 22:23
New JS File for WooCommerce Pagination
+$( 'nav' ).not('.woocommerce-pagination').before( '<button class="menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to menus except for paginaton on WooCommerce.
@lindseyriel
lindseyriel / gist:005e1289acee8be42fa8ccf2b8ed8696
Created February 17, 2018 22:22
Resolve Fun Theme WooCommerce Pagination Issue
+$( 'nav' ).before( '<button class="menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to menus
@lindseyriel
lindseyriel / gist:bb4b9986551b4269f6bc1629f02506ca
Created August 13, 2017 15:46
Travel Pretty User Profile Widget
<img src="https://prettydarncute.com/demos/travelpretty/wp-content/uploads/2017/07/HeyTherePic.jpg" />
<img class="alignleft" src="https://prettydarncute.com/demos/travelpretty/wp-content/uploads/2017/07/HeyThere1.jpg" width="75" />I'm so glad you're here! This theme has been a labor of love for over a year, something I've put so much thought into in hopes it makes your life easier and a bit more fun. The graphics above are templates included with this theme, just a couple of the little extras I've added to help you personalize your presence on the web.<img class="alignright" src="https://prettydarncute.com/demos/travelpretty/wp-content/uploads/2017/07/xoLindsey1.jpg" width="100" />
@lindseyriel
lindseyriel / gist:d517a5a1fdd8e47c906bbc99e15ca9de
Last active February 4, 2018 02:44
Travel Pretty Theme Airplane Icon
.subscribe .enews:before {
color: #a0d9ca;
content: "\f1d9";
font-family: FontAwesome;
font-weight: normal;
font-size: 30px;
font-style: normal;
display: inline-block;
padding-right: 30px;
@lindseyriel
lindseyriel / gist:597e113c0b49ce288149f5c3b722cd71
Created July 26, 2017 19:22
Change the Plane on Travel Pretty Theme
.subscribe .enews:before {
color: #a0d9ca;
content: "\f072";
font-family: FontAwesome;
font-weight: normal;
font-size: 30px;
font-style: normal;
display: inline-block;
padding-right: 30px;
text-decoration: inherit;