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
.collage { | |
background: #fff url(../images/hero-img.jpg) no-repeat center center; | |
background-size: cover; | |
height: 200px; | |
padding: 0; | |
} | |
.collage-wrap a { | |
text-decoration: none;; | |
} | |
/* sm */ |
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: Collage Page Template | |
* | |
* @package yourweblayout | |
*/ | |
get_header(); ?> | |
</div><!-- .container --> |
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 | |
/* | |
Plugin Name: Gravity Forms Limit Selected Checkboxes | |
Plugin URI: http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked | |
Description: Custom plugin to limit how many checkboxes can be checked for some fields on content submission forms. No interface provided. Manually edit plugin code to add or remove fields to limit. Created from this code: http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked | |
Version: 1.0 | |
Author: Christi Nickerson | |
Author URI: http://cnickerson.com | |
License: GPL2 | |
*/ |
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
//Add Quantity field for simple products on category page | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 ); | |
function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { | |
if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { | |
$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">'; | |
$html .= woocommerce_quantity_input( array(), $product, false ); | |
$html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>'; | |
$html .= '</form>'; | |
} |
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
/* Replace Shipping with Delivery on cart & checkout pages */ | |
/* Hide Shipping table heading */ | |
table.shop_table_responsive tbody .shipping th, | |
.shipping th { | |
visibility: hidden; | |
} | |
/* Insert Delivery */ | |
.shipping th:before { |
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
/* | |
* Enqueue Google fonts | |
* Replace font link as needed for different fonts. | |
* Get the fonts link from Google after adding font family (or families) | |
* and selecting the font weights and styles. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_scripts_styles' ); | |
function prefix_scripts_styles() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i|Roboto:400,400i,500,500i,700,700i', array(), '1.3.1' ); |
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 | |
/** | |
* The archive template file. | |
* | |
* WARNING: This template file is a core part of the | |
* Theme Blvd WordPress Framework. It is advised | |
* that any edits to the way this file displays its | |
* content be done with via hooks, filters, and | |
* template parts. | |
* |
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 fix_password_reset_link($message, $key, $user_login, $user_data) { | |
$message .= "\r\nLink not working? Copy and paste the following into your browser address bar:\r\n\r\n"; | |
$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login'); | |
return $message; | |
} | |
add_filter( 'retrieve_password_message', 'fix_password_reset_link', 10, 4); |