Skip to content

Instantly share code, notes, and snippets.

add_filter( 'genesis_pre_get_option_image_size', 'mycustom_cookd_change_recipe_index_image_size', 12 );
function mycustom_cookd_change_recipe_index_image_size() {
return 'cookd-vertical';
}
@feastdesignco
feastdesignco / my_custom_fonts_123
Created July 10, 2019 14:34
my_custom_fonts_123
add_action( 'wp_enqueue_scripts', 'my_custom_fonts_123' );
function my_custom_fonts_123() {
wp_enqueue_style(
'custom-google-fonts',
'//fonts.googleapis.com/css?family=Raleway',
array(),
CHILD_THEME_VERSION
);
}
@feastdesignco
feastdesignco / cravings-pro-convertkit-styling
Created July 4, 2019 14:02
Cravings Pro theme Convertkit styling
/* convertkit form styling for the Cravings Pro theme */
.ck_form {
background: #fbf2ea;
border-top: none;
border-bottom: none;
box-shadow: none;
color: #010101;
}
.ck_form .ck_form_content {
// add this to the code snippets plugin
add_action( 'genesis_before_content', 'custom_add_yoast_breadcrumbs', 9 );
function custom_add_yoast_breadcrumbs(){
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
}
@feastdesignco
feastdesignco / display-mobile-newsletter.css
Last active September 26, 2019 09:33
display-mobile-newsletter-foodie-pro
/* insert into the "Additional CSS" to display the above-header-newsletter area on mobile
not recommended: https://feastdesignco.com/why-we-removed-the-banner-top-on-mobile/ */
@media only screen and (max-width: 420px)
#before-header {
display: block !important;
}
@feastdesignco
feastdesignco / change-enews-button-color.php
Created May 18, 2019 11:31
change-enews-button-color
.before-header .enews-widget input[type="submit"],
.enews-widget input[type="submit"] {
background: #000;
color: #fff;
}
.before-header .enews-widget input:hover[type="submit"],
.enews-widget input:hover[type="submit"] {
background: #fff;
color: #000;
@feastdesignco
feastdesignco / add-before-entry-widget-area.php
Created May 18, 2019 11:17
add-before-entry-widget-area
//* Register before-entry widget area
genesis_register_sidebar( array(
'id' => 'before-entry',
'name' => __( 'Before Entry', 'your-theme-slug' ),
'description' => __( 'This is the before entry section.', 'your-theme-slug' ),
) );
//* Hooks before-entry widget area to single posts
add_action( 'genesis_before_entry', 'sk_after_entry_widget', 9 );
function sk_after_entry_widget() {
.before-entry {
margin-bottom: 25px;
}
/*
* Woocommerce styling removed from FoodiePro 4.0.0 due to low usage across all sites - saved 4 kb CSS
* We don't recommend for food blogs: https://feastdesignco.com/how-to/set-up-woocommerce-shop-genesis/
* If you have woocommerce and need this, add it to your Appearances > Customize > Additional CSS tab
*/
/* WooCommerce
--------------------------------------------- */
/*
* Woocommerce styling removed from CookdPro 4.0.0 due to low usage across all sites - saved 4 kb CSS
* We don't recommend for food blogs: https://feastdesignco.com/how-to/set-up-woocommerce-shop-genesis/
* If you have woocommerce and need this, add it to your Appearances > Customize > Additional CSS tab
*/
/* WooCommerce
--------------------------------------------- */