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 / custom_prevent_cat_description_output.php
Last active Oct 6, 2019
custom_prevent_cat_description_output
View custom_prevent_cat_description_output.php
add_filter('widget_categories_args', 'custom_widget_categories_args_filter', 11, 1);
/*
* removes the "category description" from being displayed as the title tag in the category link for the "categories" widget
* not sure why they decided to do this by default - it's a dumb feature - but at least it can be filtered
* add this to the code snippets plugin
* reference: https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_categories_args
*/
function custom_widget_categories_args_filter( $cat_args )
{
$cat_args['use_desc_for_title'] = false; // bool or int
View foodieprostyle_recipe_index
<?php
/**
* Template Name: Foodie-Pro-Style Recipe Index
*
* Replace the entire contents your cookdpro/templates/page-recipes.php with the contents of this file
* Make sure to use the content-sidebar layout (default), not secondary-sidebar-content layout
*
* @package CookdPro
* @copyright Copyright (c) 2019, Feast Design Co.
* @license GPL-2.0+
@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 Sep 26, 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 !important;
}
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;
You can’t perform that action at this time.