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
| /** | |
| * Don't Update Plugin | |
| * | |
| * @since 1.0.0 | |
| * | |
| * This prevents you being prompted to update if there's a public plugin | |
| * with the same name. | |
| * | |
| * @author Mark Jaquith | |
| * @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/ |
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: Hash Upload Filename | |
| * Plugin URI: https://stackoverflow.com/questions/3259696/rename-files-during-upload-within-wordpress-backend | |
| * Description: Rename uploaded jpg and png files as the hash of their original. Extension remains same. | |
| * Author: Web Savvy Marketing | |
| * Author URI: http://www.web-savvy-marketing.com | |
| * 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
| function hotfix_gforms_web_to_lead( $subdomain, $test ) { | |
| // We will disregard the original subdomain value, which is legacy "www". | |
| return ( $test ) ? 'test' : 'webto'; | |
| } | |
| add_filter( 'gf_salesforce_request_subdomain', 'hotfix_gforms_web_to_lead', 10, 2 ); | |
| // ref: https://wordpress.org/support/topic/plugin-does-not-to-salesforce-web-to-lead-url-heres-how-to-fix-it/ |
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
| html { | |
| box-sizing: border-box; | |
| } | |
| *, *:before, *:after { | |
| box-sizing: inherit; | |
| } | |
| body { | |
| min-height: 100vh; | |
| margin: 0; /* Important! */ | |
| font-family: sans-serif; |
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
| /* Sticky header */ | |
| .site-header { | |
| position: fixed; | |
| width: 100%; | |
| z-index: 1000; | |
| } | |
| /* this is optional and may not be needed in some situations */ | |
| nav.nav-primary { |
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
| /** | |
| * This is a function to automatically plug the date of first post into footer. | |
| * | |
| * @package CWS Core Functionality | |
| * @since 1.0.0 | |
| * @author Cap Web Solutions | |
| * @license GPL-2.0+ | |
| * | |
| * @return void | |
| */ |
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
| # Execute at the commadn line within your project. | |
| > git log --since 2018-02-01 --pretty="short" --name-only | grep php |
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
| //* Manually insert Cat Title to Blog Categories | |
| remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 ); | |
| add_action('genesis_before_loop','prefix_cat_title', 16); | |
| function prefix_cat_title () { | |
| if( is_category() || is_tag() || is_tax() ) { | |
| global $wp_query; | |
| $term = is_tax() ? get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ) : $wp_query->get_queried_object(); | |
| $intro_text = apply_filters( 'genesis_term_intro_text_output', $term->meta['intro_text'] ); | |
| printf('<div class="archive-description"><h1 class="archive-title">%1$s</h1>%2$s</div>', single_cat_title( '', false ), $intro_text); | |
| } |