Skip to content

Instantly share code, notes, and snippets.

View ryantownley's full-sized avatar

Ryan Townley ryantownley

View GitHub Profile
@ryantownley
ryantownley / style.css
Created February 18, 2020 17:47
Secondary navigation menu spacing when above footer copyright text in Genesis.
.nav-secondary {
margin: 0 0 20px;
}
@ryantownley
ryantownley / style.css
Created February 18, 2020 17:46
Default secondary navigation menu spacing when below footer copyright text in Genesis.
.nav-secondary {
margin-top: 10px;
}
@ryantownley
ryantownley / functions.php
Last active February 18, 2020 17:44
Move the secondary navigation menu to just above footer copyright text in Genesis.
// Repositions the secondary navigation menu to just below footer copyright text.
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 5 );
@ryantownley
ryantownley / functions.php
Last active February 18, 2020 17:17
Move the secondary navigation menu to just below footer copyright text in Genesis.
// Repositions the secondary navigation menu to just below footer copyright text.
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 10 );
@ryantownley
ryantownley / style.css
Last active November 29, 2019 20:53
Minimal Genesis form styles.
input,
textarea,
.nf-form-content .list-select-wrap .nf-field-element > div,
.nf-form-content input:not([type=button]),
.nf-form-content textarea,
.site-container .wpforms-container .wpforms-form .wpforms-field input,
.site-container .wpforms-container .wpforms-form .wpforms-field textarea {
border: 0 !important;
border-bottom: 3px solid #eee !important;
}
@ryantownley
ryantownley / style.css
Last active November 29, 2019 20:52
Minimal Genesis button styles.
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.site-container .wp-block-button .wp-block-button__link {
background-color: #fff;
border: 4px solid #333;
border-radius: 30px;
box-shadow: none;
@ryantownley
ryantownley / functions.php
Created February 6, 2019 03:00
Reposition WooCommerce price on single product page to below short description
// Reposition WooCommerce price on single product page to below short description
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 25 );
@ryantownley
ryantownley / style.css
Created February 3, 2019 19:23
Ninja Forms styles
/* Ninja Forms
--------------------------------------------- */
.nf-form-fields-required {
font-size: 80%;
margin-bottom: 20px;
}
.label-above .nf-field-label {
margin-bottom: 5px !important;
@ryantownley
ryantownley / style.css
Created February 3, 2019 19:07
Genesis Simple FAQ styles
/* Genesis Simple FAQ
--------------------------------------------- */
.gs-faq__question {
background: transparent;
border-bottom: 1px solid #eee;
color: #333;
padding-left: 0;
padding-right: 0;
}
@ryantownley
ryantownley / functions.php
Created January 27, 2019 21:48
Remove WooCommerce sorting drop down on product archives
// Removes WooCommerce sorting drop down on product archives
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering',30 );