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
Trick to test Retina Displays: | |
You actually can using Firefox: | |
1. Go to "about:config" | |
2. Find "layout.css.devPixelsPerPx" | |
3. Change it to your desired ratio (1 for normal, 2 for retina, etc.) | |
Refresh your page - boom, your media query has now kicked in! | |
Hats off to Firefox for being awesome for web developing! |
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
1. Type 'about:config' in the address bar | |
2. Search 'security.fileuri.strict_origin_policy' and set it to false | |
WARNING!!! This is a huge security hole! Please use with caution! |
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
target : context = result | |
For ems (fonts): | |
ex: | |
body { | |
font-size: 100%; | |
} |
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
Make sure the following Apache modules are running: | |
- alias_module | |
- rewrite_module |
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
/** Disables the Auto-Update feature. This line must be in wp-config.php. */ | |
define( 'AUTOMATIC_UPDATER_DISABLED', true ); |
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're using SVG as a background-image... | |
-------------------- | |
CSS: | |
.my-element { | |
background-image: url(image.svg); | |
} | |
.no-svg .my-element { | |
background-image: url(image.png); |
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
1) In wordpress, change the permalink setting to /%postname%/ | |
2) In WAMP, make sure the apache module alias_module and rewrite_module are running. | |
3) If you are running multiple sites in WAMP, you’ll need to make sure that in the httpd-vhosts.conf file the Allow Override line is replaced with AllowOverride FileInfo Options. | |
4) That’s it! Restart WAMP and it should work. |
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
// Disable Spinner and Native Calendar Dropdown | |
input[type="date"], | |
input[type="datetime"], | |
input[type="datetime-local"], | |
input[type="month"], | |
input[type="week"], | |
input[type="time"] { | |
appearance: textfield; | |
&::-webkit-calendar-picker-indicator { | |
display: none; |
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
// Disable Native Date/Time Inputs | |
var dateInputs = [ | |
'input[type="date"]', | |
'input[type="datetime"]', | |
'input[type="datetime-local"]', | |
'input[type="month"]', | |
'input[type="week"]', | |
'input[type="time"]' | |
]; |
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
- Go to 'C:\wamp64\bin\apache\apache2.4.18\conf', open 'httpd.conf' and change the DocumentRoot and <Directory> paths. | |
- Next, go to 'C:\wamp64\bin\apache\apache2.4.18\conf\extra', open 'httpd-vhosts.conf' and do the same thing as above. | |
OlderNewer