Skip to content

Instantly share code, notes, and snippets.

View davebonds's full-sized avatar

Dave Bonds davebonds

View GitHub Profile
@davebonds
davebonds / 0_reuse_code.js
Created June 1, 2014 13:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@davebonds
davebonds / wp-listings-details-filter.php
Last active August 29, 2015 14:02
wp-listings-details-filter.php
# Add filter for listing details
add_filter( 'wp_listings_property_details', 'custom_wp_listings_details');
function custom_wp_listings_details() {
$property_details_columns = array(
'col1' => array(
__( 'Price:', 'wp_listings' ) => '_listing_price',
__( 'Address:', 'wp_listings' ) => '_listing_address',
__( 'City:', 'wp_listings' ) => '_listing_city',
__( 'State:', 'wp_listings' ) => '_listing_state',
@davebonds
davebonds / equity_no_welcome.php
Created October 3, 2014 17:50
Remove Welcome screen in Equity child theme
//* Remove welcome screen (getting started links)
add_filter( 'equity_display_welcome_screen', 'equity_no_welcome' );
function equity_no_welcome() {
return false;
}
@davebonds
davebonds / equity_welcome_link_forum.php
Created October 3, 2014 18:06
Filters to change links in Equity Welcome screen
@davebonds
davebonds / mir-home-middle.html
Created October 22, 2014 19:32
Move-in Ready Home Middle shortcode example
[row][column large="6"]<h4>What is My Home Worth</h4>
<p>Looking to sell? Get a free home evaluation</p>
[button url="#" size="large"]Find Out Now[/button]
[/column]
[column large="6"]<h4>Free Listing Manager</h4>
<p>Save your favorites, get email updates for listings, and more!</p>
[button url="#" size="large"]Sign Up[/button]
[button url="#" size="large" secondary="true"]Sign In[/button]
[/column]
[/row]
[row]
[column small="12" medium="6" large="8"]
[iconbox type="1" newtab="true" icon="fa-dashboard" url="http://www.agentevolution.com" heading="My Listing Manager"]Sign up for a FREE Listing Manager account to save your favorites, get
email updates on properties, and more.[/iconbox]
[/column]
[column small="12" medium="6" large="4"]
[button url="#" secondary="true" size="large" expand="true"]Sign Up[/button]
[button url="#" secondary="true" size="large" expand="true"]Login[/button]
[/column]
[/row]
@davebonds
davebonds / equity-page-carousel.css
Created March 25, 2015 18:03
Basic CSS for Equity - Featured Page Carousel
@davebonds
davebonds / prime-location-home-top
Created March 31, 2015 14:44
Prime Location Home Top Widget Shortcodes
[row]
[column medium="4" large="4"]
[iconbox type="2" icon="fa-home" heading="Buy With Us" url="http://www.agentevolution.com" ]This is an example of the iconbox type 2 shortcode. Vestibulum mi justo, feugiat non blandit eu, pretium at erat.[/iconbox]
[/column]
[column medium="4" large="4"]
[iconbox type="2" icon="fa-dollar" heading="Sell With Us" url="http://www.agentevolution.com" ]This is an example of the iconbox type 2 shortcode. Vestibulum mi justo, feugiat non blandit eu, pretium at erat.[/iconbox]
[/column]
[column medium="4" large="4"]
[iconbox type="2" icon="fa-thumbs-up" heading="Free Home valuation" url="http://www.agentevolution.com" ]This is an example of the iconbox type 2 shortcode. Vestibulum mi justo, feugiat non blandit eu, pretium at erat.[/iconbox]
[/column]
/**
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
*/
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
//first check that woo exists to prevent fatal errors
if ( function_exists( 'is_woocommerce' ) ) {
[row]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-search" heading="Buy With Us" url="http://curbappeal.idxbroker.com/idx/search/basic" ]Search homes by us[/iconbox]
[/column]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-envelope" heading="Listings by Email" url="http://curbappeal.idxbroker.com/idx/usersignup" ]Listing updates sent to your inbox[/iconbox]
[/column]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-bar-chart" heading="Home Valuation" url="http://curbappeal.idxbroker.com/idx/homevaluation" ]What is your home worth?[/iconbox]
[/column]