Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
@contempoinc
contempoinc / functions.php
Created October 19, 2015 15:25
Dequeue & Deregister Styles and Scripts for Child Theme
<?php
function PREFIX_remove_scripts() {
// Example Dequeue/Deregister animate.min.css
wp_dequeue_style( 'animate' );
wp_deregister_style( 'animate' );
// Example Dequeue/Deregister ct.mapping.js
wp_dequeue_script( 'mapping' );
@contempoinc
contempoinc / single-listings.php
Created October 6, 2015 17:41
Single Listings for Automotive 2
<?php
/**
* Single Template
*
* @package WP Pro Automotive 2
* @subpackage Template
*/
global $ct_options;
@contempoinc
contempoinc / template-agents.php
Created October 6, 2015 15:28
Agents Random Order - Real Estate 7
<?php
/**
* Template Name: Agents
*
* @package WP Pro Real Estate 7
* @subpackage Template
*/
global $ct_options;
@contempoinc
contempoinc / media-query.css
Created October 1, 2015 15:38
Make Mobile Full Width when using Boxed Layout in Real Estate 7
@media only screen and (max-width: 767px) {
.container.main { padding: 0 !important; max-width: 100%;}
}
@contempoinc
contempoinc / base.js
Created September 29, 2015 18:38
Day Spa
'use strict';
/**
* Core
*
* @package WP Day Spa
* @subpackage JavaScript
*/
jQuery.noConflict();
<?php
/**
* Agents Other Listings
*
* @package WP Pro Real Estate 7
* @subpackage Widget
*/
class ct_AgentsOtherListings extends WP_Widget {
<?php
/**
* Agents Other Listings
*
* @package WP Pro Real Estate 7
* @subpackage Widget
*/
class ct_AgentsOtherListings extends WP_Widget {
<?php if (!empty($_GET['search-listings'])) {
require('search-listings.php');
return;
} ?>
@contempoinc
contempoinc / layout.css
Created September 24, 2015 00:09
day spa
/*
* Layout
*
* @package WP Day Spa
* @subpackage CSS
*
WARNING! DO NOT EDIT THIS FILE!
To make it easy to update your theme, you should not edit the styles in this file. Instead use
<?php if (!empty($_GET['search-listings'])) {
require('search-listings.php');
return;
} ?>