##Grouping wordpress search result by post types
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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
##Targetting IE10+ Using Media Query Reference: http://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/
##Add Custom Options for WordPress Widgets This snippet will add some option to all registered widget in wordpress.
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
/* | |
* This method can be applied to video tag and | |
* can be applied to iframe video like youtube, but with some issue to be considered | |
*/ | |
video{ | |
/* Centering the video */ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translateX(-50%) translateY(-50%); |
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
/* | |
* If you want to style specific Input, prepend the input selector like: | |
* | |
* .control::-webkit-input-placeholder{ ... } | |
* | |
*/ | |
::-webkit-input-placeholder { | |
color: red; | |
} |
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
var $el = $("#very-specific-design"); | |
var elHeight = $el.outerHeight(); | |
var elWidth = $el.outerWidth(); | |
var $wrapper = $("#scaleable-wrapper"); | |
$wrapper.resizable({ | |
resize: doResize | |
}); |