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
/* COLORS FOR CAR Types */ | |
$mini-van-base: #344556; //blue | |
$sedan-base: #b43d3d; //red | |
$suv-base: #7a4c8e; //purple | |
$truck-base: #d0922f; //yellow | |
$convertible-base: #ff5831; //orange | |
@each $car_type, $color in | |
( mini-van, $mini-van-base ), | |
( sedan, $sedan-base ), |
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 | |
/** | |
* Maintainn Gravity Forms Hooks & Filter overrides | |
* | |
*/ | |
/* | |
* Filter the Gravity Forms button type and add your own .class | |
*/ | |
function your_prefix_form_submit_button( $button, $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
// Usage: | |
// get_id_by_slug( 'any-page-slug' ); | |
function get_id_by_slug( $page_slug ) { | |
$page = get_page_by_path( $page_slug ); | |
if ( $page ) { | |
return $page->ID; | |
} else { | |
return null; |
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($) { | |
var menuToggle = $('.menu-toggle'); | |
var overlay = $('.overlay'); | |
var closeButton = $('.overlay-close'); | |
var searchToggle = $('.search-toggle'); | |
var searchForm = $('.search-form'); | |
var ww = window.innerWidth; |
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 | |
// Remove the capital_P_dangit function from Wordpress | |
// place in your themes' functions.php file, or | |
// better yet make a plugin and keep functionality | |
// out of your themes. | |
remove_filter( 'the_title', 'capital_P_dangit', 11 ); | |
remove_filter( 'the_content', 'capital_P_dangit', 11 ); | |
remove_filter( 'comment_text', 'capital_P_dangit', 31 ); |
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
# Apache .htaccess | |
RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$1 | |
# Nginx | |
location ~ ^/wp-content/uploads/(.*) { | |
rewrite ^/wp-content/uploads/(.*)$ http://livewebsite.com/wp-content/uploads/$1 redirect; | |
} |
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
# START enable gzip compression | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
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
/** | |
* Back To Top. | |
*/ | |
window.Back_To_Top = {}; | |
( function( window, $, that ) { | |
// Private variables. | |
var minWidth = 768; | |
var minHeight = 200; |
OlderNewer