Skip to content

Instantly share code, notes, and snippets.

@feastdesignco
feastdesignco / Add A Widgetized Recipe Index to the Foodie Child Theme
Created October 7, 2013 14:38
Add A Widgetized Recipe Index to the Foodie Child Theme - you MUST edit this code to make it work.
<?php
/**
* Template Name: Recipe Index
*
* @category Foodie
* @subpackage Genesis
* @copyright Copyright (c) 2013, Shay Bocks
* @license GPL-2.0+
* @link http://www.shaybocks.com/foodie/
* @since 1.0.0
$ = jQuery;
/*
* jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
<div class="video"><h2><i class="fa fa-video-camera" aria-hidden="true"></i> video tutorial</h2> VIDEO HERE </div>
@feastdesignco
feastdesignco / change_genesis_seo_title
Last active June 14, 2018 13:02
Change the default genesis_seo_title
/**
* Filter the genesis_seo_site_title function to use an image for the logo instead of a background image
*
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php
* Original credit http://blackhillswebworks.com/?p=4144
* Add to feast-customizations-plugin to preserve change during updates, not functions.php
*
*/
add_filter( 'genesis_seo_title', 'feast_filter_genesis_seo_site_title', 10, 2 );
@feastdesignco
feastdesignco / remove-genesis-header-background-styles.css
Created June 16, 2018 11:33
Remove styling associated with the old Genesis header by commenting it out
/*
.header-image .site-description,
.header-image .site-title a {
display: block;
text-indent: -9999px;
}
*/
/* Logo, hide text */
/*
.header-image .site-title > a {
@feastdesignco
feastdesignco / foodiepro3-edit-header-size
Created June 16, 2018 17:11
Edit header size by changing the width/height dimensions - FoodPro 3.1.4 and lower.
add_theme_support( 'custom-header', array(
'width' => 640,
'height' => 340,
'header-selector' => '.site-title a',
'header-text' => false,
) );
@feastdesignco
feastdesignco / foodiepro3-edit-header-size-css
Created June 16, 2018 17:12
Edit header size by changing the width/height dimensions - FoodPro 3.1.4 and lower.
.header-image .site-title > a {
-webkit-background-size: contain !important;
background-size: contain !important;
display: block;
height: 150px;
margin: 10px auto;
max-width: 320px;
text-indent: -9999px;
}
@feastdesignco
feastdesignco / foodiepro3-edit-header-size-mobile
Created June 16, 2018 17:14
Mobile sizes for header - FoodPro 3.1.4 and lower.
@media only screen and (max-width: 420px) {
/* Resize logo header for smaller devices */
.header-image .site-title > a {
height: 150px;
max-width: 320px;
}
}
@feastdesignco
feastdesignco / remove_genesis_inline_header_css
Last active June 24, 2018 16:48
Removes the logo as a background-image from the header
/**
* Remove the genesis_custom_header_style - bad design practice to use code as styling - this should have been in the CSS
* Foodie Pro versions after 3.1.4 include this by default, along with other changes
*
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php
*
*/
add_action('after_setup_theme','feast_remove_theme_filter');
function feast_remove_theme_filter(){
/*
* Woocommerce styling removed from BrunchPro 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
--------------------------------------------- */