This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="./style.css"> | |
<style> | |
button { | |
border: none; | |
background: green; | |
color: white; | |
font-weight: bold; | |
border-radius: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"0":{"title":"Support Group RSVP","description":"Pre-register for the support group. If you are a member, log in and attend for free.","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Register","imageUrl":"","conditionalLogic":null},"fields":[{"type":"email","id":2,"label":"Email","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","inputs":null,"formId":51,"description":"","allowsPrepopulate":true,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"user_email","visibility":"visible","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","emailConfirmEnabled":"","displayOnly":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false},{"type":"name","id":1,"label":"Name", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Append these functions in your functions.php file */ | |
// add the genesis hooks we need based on whether the uesr is logged in, what page we're on, etc. | |
function prep_genesis(){ | |
if ( ( is_singular( 'my_post_type' ) || is_singular('my_othter_post_type' ) ) && is_user_logged_in () ){ | |
$user = wp_get_current_user(); | |
$post = get_queried_object(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template Name: Section Landing Children */ | |
function tl_show_page_children(){ | |
// get the child pages | |
global $post; | |
$args = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tl_show_page_owner(){ | |
// uncomment the line below if you want to use this only on pages. | |
// if (!is_page()) return; | |
$page = get_queried_object(); | |
if (!($page instanceof WP_Post)){ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// called when saving a post. | |
public function tl_save_post($post_id){ | |
// dont do this on auosave. | |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) | |
return; | |
// verify this came from the our screen and with proper authorization, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------- | |
* Paypal Args. Paypal only accepts integer quantities, so we have to update the | |
* information that's sent from the order, but only for metals. | |
* --------------------------------- */ | |
add_filter('woocommerce_paypal_args', 'tl_paypal_args', 100, 1); | |
function tl_paypal_args( $args ){ | |
$counter = 1; | |
while(isset( $args[ 'quantity_' . $counter])){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// filter single product image to enable cropping | |
add_filter('woocommerce_get_image_size_single', 'bb_crop_woo_image', 100); | |
function bb_crop_woo_image( $size ){ | |
$size['crop'] = 1; | |
$size['height'] = 315; | |
return $size; | |
} | |
// Or use a different fixed size image on the gallery in the single product page | |
add_filter( 'woocommerce_gallery_image_size' , 'bb_medium_image_size' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _search | |
{ | |
"size":24, | |
"from":0, | |
"query" : { | |
"function_score" : { | |
"query":{ | |
"multi_match":{ | |
"query":"bagel", | |
"fields":["post_title^3","post_excerpt^2","post_content","post_author.display_name","terms.category.name", "terms.resource-category.name","terms.post_tag.name"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file adds a full-width page to Genesis that you can use with Beaver Build. | |
* | |
*/ | |
/* | |
Template Name: Full-Width Beaver Builder Page | |
*/ |
NewerOlder