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
| memory_limit = 96M | |
| max_input_vars = 3000 | |
| max_execution_time = 120 | |
| post_max_size = 32M | |
| upload_max_filesize = 32M |
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 | |
| /** | |
| * Zip a folder | |
| * | |
| * @param string $src path to folder path/folder | |
| * @param string $dest destination name path/folder.zip | |
| * @see http://stackoverflow.com/questions/4914750/how-to-zip-a-whole-folder-using-php | |
| */ | |
| function zipit( $src, $dest = null ) { | |
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 | |
| /** | |
| * Overwrite custom post type slug | |
| * | |
| * @param array $args | |
| * @param string $post_type | |
| * @return array $args | |
| * | |
| * @link https://wordpress.stackexchange.com/questions/247706/how-to-change-custom-post-type-slug | |
| */ |
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 | |
| /** | |
| * Allow SVG files | |
| * | |
| * @param array $mimes | |
| * @return array $mimes | |
| */ | |
| function wolf_mime_types( $mimes ) { | |
| $mimes['svg'] = 'image/svg+xml'; | |
| $mimes['svgz'] = 'image/svg+xml'; |
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
| background: linear-gradient(330deg, #e05252 0%, #99e052 25%, #52e0e0 50%, #9952e0 75%, #e05252 100%); | |
| background-clip: text; | |
| text-fill-color: transparent; |
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
| // Column bottom margin and width on mobile when columns are stacked | |
| .col{ | |
| width:100%; | |
| margin-bottom:2em; | |
| } | |
| $gap : 35px; // space between columnd | |
| $gutter : $gap / 2; | |
| // Grid system for screen larger than 800px |
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
| /** | |
| * Enqueue RTL CSS stylesheet | |
| */ | |
| function enqueue_rtl_styles() { | |
| // Dequeue main CSS file | |
| wp_dequeue_style( 'theme-style' ); // replace "theme" by your the theme slug | |
| wp_deregister_style( 'theme-style' ); // replace "theme" by your the theme slug | |
| // Enqueue auto-generated rtl CSS file | |
| wp_enqueue_style( 'rtl', get_template_directory_uri() . '/rtl.css' ); |
OlderNewer