Skip to content

Instantly share code, notes, and snippets.

View boywondercreative's full-sized avatar

shawn boywondercreative

View GitHub Profile
@boywondercreative
boywondercreative / font override
Created October 8, 2013 16:42
font override for Jonathan
body,
body.custom-font-enabled {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1em;
color:#494849;
}
/*
font imported from
http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans
*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
body,
body.custom-font-enabled {
font-family: 'Open Sans', sans-serif;
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@boywondercreative
boywondercreative / Enfold - disable layer slider
Created August 22, 2015 15:31
Enfold - disable layer slider
http://www.kriesi.at/documentation/enfold/deactivate-the-layerslider-plugin/
child theme add this line to your functions.php file:
add_theme_support('deactivate_layerslider');
If you are not using a child theme you will need to add the same line after each theme update to your functions.php file at the top, just after the theme’s global variable. Look for
global $avia_config;
and one line after it add:
add_theme_support('deactivate_layerslider');
<?php
/*
Plugin Name: HAZMAT Shipping Options
Plugin URI:
Description: HAZMAT Shipping Options plugin
Version: 1.0.0
Author: sc
Author URI:
*/
<form class="property-search-form" action="<?php if ( tt_page_id_template_search() ) { echo get_permalink( tt_page_id_template_search() ); } ?>">
<?php
if ( ! tt_page_id_template_search() ) {
echo '<p class="alert alert-info">' . __( 'Please create a page that is using page template: Property Search Results', 'tt' ) . '</p>';
}
?>
<div class="row">
<?php
@boywondercreative
boywondercreative / realty-theme_header.php
Created December 1, 2017 23:43
header.php (realty theme)
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
@boywondercreative
boywondercreative / footer.php
Created December 1, 2017 23:47
footer.php (Realty theme)
@boywondercreative
boywondercreative / property-item.php
Last active December 2, 2017 00:25
property-tem.php (lib >> inc >> template) Realty Theme
<?php
global $realty_theme_option;
if ( ! isset( $property_id ) || empty( $property_id ) ) {
$property_id = $post->ID;
}
$property_type = get_the_terms( $property_id, 'property-type' );
$property_status = get_the_terms( $property_id, 'property-status' );
$property_location = get_the_terms( $property_id, 'property-location' );