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
| /** | |
| * Only show admin bar to administrator | |
| * | |
| * Add to functions.php | |
| */ | |
| if (!current_user_can('administrator')) : | |
| show_admin_bar(false); | |
| endif; |
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 Gzip Compression | |
| # Gzip reduces HTTP response time | |
| <ifmodule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
| </ifmodule> |
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
| /** | |
| * Force direct update of WP | |
| * | |
| * Add to wp-config.php | |
| */ | |
| define('FS_METHOD','direct'); |
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
| /** | |
| * Remove WP Logo from admin bar | |
| */ | |
| function wplogo_admin_bar_remove() { | |
| global $wp_admin_bar; | |
| $wp_admin_bar->remove_menu('wp-logo'); | |
| } |
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
| # Protect wp-config.php | |
| <files wp-config.php> | |
| order allow,deny | |
| deny 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
| /** | |
| * Define maximum file upload limit | |
| */ | |
| define('WP_MEMORY_LIMIT', '64M'); |
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
| /* vertical-align */ | |
| position: relative; | |
| top: 50%; | |
| -webkit-transform: translateY(-50%); | |
| -ms-transform: translateY(-50%); | |
| transform: translateY(-50%); |
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
| //Get first parent | |
| $parent = array_reverse(get_post_ancestors($post->ID)); | |
| $first_parent = get_page($parent[0]); | |
| echo $first_parent->post_name; |
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
| @-webkit-keyframes opacity { | |
| 0% { opacity: 1; } | |
| 100% { opacity: 0; } | |
| } | |
| @-moz-keyframes opacity { | |
| 0% { opacity: 1; } | |
| 100% { opacity: 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
| # Font mime types | |
| #AddType application/vnd.ms-fontobject .eot | |
| #AddType application/x-font-ttf .ttf | |
| #AddType application/x-font-woff .woff | |
| AddType font/ttf .ttf | |
| AddType font/eot .eot | |
| AddType font/otf .otf | |
| AddType font/opentype .woff |