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_filter( 'projects_loop_columns', 'change_projects_columns', 99 ); | |
| function change_projects_columns( $columns ) { | |
| $cols = 3; | |
| return $columns; | |
| } |
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
| ## LEVERAGE BROWSER CACHING ## | |
| ## https://gtmetrix.com/leverage-browser-caching.html ## | |
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresByType image/jpg "access plus 1 year" | |
| ExpiresByType image/jpeg "access plus 1 year" | |
| ExpiresByType image/gif "access plus 1 year" | |
| ExpiresByType image/png "access plus 1 year" | |
| ExpiresByType text/css "access plus 1 month" | |
| ExpiresByType application/pdf "access plus 1 month" |
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 | |
| // CREDIT: http://pastebin.com/Ju78M8Ax | |
| // exclude field from {all_fields} merge tag by adding | |
| // :exclude to merge tag | |
| add_filter( 'gform_merge_tag_filter', 'exclude_from_all_fields', 10, 4 ); | |
| function exclude_from_all_fields ( $value, $merge_tag, $options, $field ) { | |
| $options_array = explode ( ",", $options ); | |
| $exclude = in_array ( "exclude", $options_array ); | |
| // if a field has the CSS Class Name gf_exclude the field will be excluded from the {all_fields:exclude} merge tag |
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
| .front-page-2, | |
| .front-page-3, | |
| .front-page-4, | |
| .front-page-5, | |
| .front-page-6, | |
| .front-page-7 { | |
| border-top: 54px solid transparent; | |
| margin-top: -54px; | |
| -webkit-background-clip: padding-box; | |
| -moz-background-clip: padding; |
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 | |
| /* | |
| Plugin Name: PHP Compatibility Custom Timeout | |
| */ | |
| function custom_timeout( $timeout ) { | |
| return 0; | |
| } | |
| add_filter( 'wpephpcompat_scan_timeout', 'custom_timeout', 10 ); |
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 body class for GravityView contexts | |
| */ | |
| add_filter('body_class', function( $classes = array() ) { | |
| if ( ! class_exists( '\GV\View_Collection' ) ) { | |
| return $classes; | |
| } |
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 | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-disable-submit-button-until-required-fields-are-filled-out.php | |
| */ | |
| /** | |
| * Gravity Wiz // Gravity Forms // Disable Submit Button Until Required Fields are Field Out | |
| * | |
| * Disable submit buttones until all required fields have been filled out. Currently only supports single-page forms. |
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
| SOLUTIONS I have came across so far: | |
| ======================== SOLUTION 1 ==================== | |
| In plugins (or somewhere) you probably have this code: | |
| ini_set('zlib.output_compression', '1'); | |
| so, I replaced that code with |
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
| /** Customize Read More Text */ | |
| add_filter( 'excerpt_more', 'child_read_more_link' ); | |
| add_filter( 'get_the_content_more_link', 'child_read_more_link' ); | |
| add_filter( 'the_content_more_link', 'child_read_more_link' ); | |
| function child_read_more_link() { | |
| return '<a href="' . get_permalink() . '" rel="nofollow">CUSTOMIZE YOUR TEXT HERE</a>'; | |
| } |
OlderNewer