This file contains hidden or 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 | |
| /* Increase memory limit for WordPress | |
| ** Codex: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */ | |
| define( 'WP_MEMORY_LIMIT', '96M' ); |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| img { | |
| display: block; // works - use this first | |
| // vertical-align: bottom // also suggested as an alternative | |
| } |
This file contains hidden or 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
| li { | |
| display: inline-block; | |
| zoom: 1; // hasLayout bug fix for IE | |
| *display: inline; // asterisk (*) in front of display: inline allows for other browsers to ignore that line | |
| } |
This file contains hidden or 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
| /* http://css-tricks.com/css-transparency-settings-for-all-broswers/ */ | |
| .transparent { /* change to whatever you are using */ | |
| zoom: 1; | |
| filter: alpha(opacity=50); | |
| opacity: 0.5; | |
| } |
This file contains hidden or 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 | |
| add_filter( 'soliloquy_youtube_args', 'tgm_soliloquy_youtube_args' ); | |
| function tgm_soliloquy_youtube_args( $args ) { | |
| /* each of the args can be added/removed to suit */ | |
| /* see for paramters: https://developers.google.com/youtube/player_parameters */ | |
| $args['rel'] = 0; | |
| $args['controls'] = 0; | |
| $args['color'] = 'white'; | |
| $args['autohide'] = 1; |
This file contains hidden or 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 _e( wp_oembed_get( get_field( 'youtube_link' ) ) ); ?> |
This file contains hidden or 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
| // reference url: http://stackoverflow.com/questions/16154494/retina-displays-high-res-background-images | |
| @media only screen and (-webkit-min-device-pixel-ratio: 2), | |
| only screen and ( min--moz-device-pixel-ratio: 2), | |
| only screen and ( -o-min-device-pixel-ratio: 2/1), | |
| only screen and ( min-device-pixel-ratio: 2), | |
| only screen and ( min-resolution: 192dpi), | |
| only screen and ( min-resolution: 2dppx) { | |
| .box{ | |
| background:url('images/box-bg@2x.png') no-repeat top left; |
NewerOlder