Skip to content

Instantly share code, notes, and snippets.

Feast Design Co. feastdesignco

Block or report user

Report or block feastdesignco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@feastdesignco
feastdesignco / woocommerce.css
Created Aug 15, 2019
Adds back in woocommerce styling removed from Feast themes 4.1.5+ - not tested
View woocommerce.css
/* WooCommerce is a waste of time for food bloggers. We do not recommend using this. It is here for developers only. */
/* Seasoned Pro Pro WooCommerce
Loaded on WooCommerce pages */
/* WooCommerce Globals
----------------------------------------------------------------------------- */
.woocommerce.full-width-content .content,
.woocommerce-page.full-width-content .content {
@feastdesignco
feastdesignco / add_woocom_support
Created Aug 15, 2019
Adds back in woocommerce functionality removed from Feast themes 4.1.5+ - not tested
View add_woocom_support
// Add support for WooCommerce features.
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'wc-product-gallery-zoom' );
if ( class_exists( 'WooCommerce', false ) ) {
require_once FEAST_DIR . 'lib/woocommerce.php'; // note: doesn't exist anymore
}
View mycustom_cookd_change_recipe_index_image_size
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';
}
View 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 Jul 4, 2019
Cravings Pro theme Convertkit styling
View cravings-pro-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 {
View custom_add_yoast_breadcrumbs.php
// 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 May 19, 2019
display-mobile-newsletter-foodie-pro
View display-mobile-newsletter.css
/* 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;
}
View change-enews-button-color.php
.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;
View add-before-entry-widget-area.php
//* 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() {
View before-entry-css.php
.before-entry {
margin-bottom: 25px;
}
You can’t perform that action at this time.