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
| https://css-tricks.com/design-considerations-text-images/ |
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://codepen.io/jakob-e/pen/doMoML |
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
| // google maps - parallax - white color - horizontal line - fix | |
| // just inside it in styles css | |
| $COLOR = your google maps background color - it's color of horizontal line | |
| .gm-style > div:first-child { | |
| background-color: $COLOR; | |
| } | |
| // example: |
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
| add_action( 'wp_head', 'motyw_add_custom_style_css', 1000 ); | |
| function motyw_add_custom_style_css() { ?> | |
| <?php $queried_object = get_queried_object(); // fix dla kategorii ?> | |
| <?php if ( function_exists( 'the_field' ) ) : ?> | |
| <style type="text/css"> |
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
| // google maps svg + data64 - dynamic JS generator | |
| var map = new google.maps.Map(document.getElementById('map'), { | |
| zoom: 11, | |
| center: new google.maps.LatLng(-10.22, 100.44), | |
| mapTypeId: google.maps.MapTypeId.ROADMAP | |
| }); | |
| var template = [ | |
| '<?xml version="1.0"?>', |
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
| # htaccess to folder /wp-content/ and /uploads/ and /themes/ | |
| order deny,allow | |
| deny from all | |
| <files ~ ".(xml|css|js|svg|svgz|ttf|tiff|tif|otf|eot|woff|woff2|jpg|jpeg|mp3|mp4|asf|wmv|mpg|mpeg|avi|mov|wav|wma|wave|ogg|m4a|ogv|mp4|m4v|ico|webp|webm|swf|flv|bmp|png|gif|pdf|doc|docx|xls|rtf|pps|ppt|pptx|zip|rar)$"> | |
| allow from all | |
| </files> | |
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
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> | |
| # END WordPress |
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 if ( ! defined( 'ABSPATH' ) ) exit; get_header(); ?> |
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
| // open: Preferences -> Settings -> User | |
| // and add: | |
| { "file_exclude_patterns": [".DS_Store"] } |
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
| // ### move all files to /src/ folder, and gulp output fils to folder up (without folder like a build/dist/etc) all files are moved to folder up | |
| // src/gulpfile.js | |
| // src/scss/ | |
| // src/images/ | |
| // src/js/ | |
| // export to ../ | |
| // ### example: | |
| // themes/theme_name/src/scss/main.scss | |
| // move to: | |
| // themes/theme_name/main.min.css |
OlderNewer