Examples used at http://msls.co/hooks-filters-and-actions/
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
| /* ---------------------------------------------------------------------------------------------------- | |
| SCSS Form Reset Helpers - Forked from: https://gist.github.com/anthonyshort/552543 | |
| Intended usage: | |
| - MIXINS: for very specific use cases, when you dont want to reset absolutly all the forms, very verbose output. | |
| - PLACEHOLDER SELECTORS: use as extending classes. Less verbose, more generic overrides. | |
| A couple of things to watch out for: |
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://support.advancedcustomfields.com/forums/topic/change-menu-position-of-options-page/ | |
| acf_add_options_page( array( | |
| 'page_title' => 'Home Page Sliders', | |
| 'menu_title' => 'Sliders', | |
| 'menu_slug' => 'home-page-sliders', | |
| 'capability' => 'edit_posts', | |
| 'icon_url' => 'dashicons-images-alt2', | |
| 'position' => 7 |
Between [your name] and [their name]
You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.
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
| /* ========================================================================== | |
| Gravity Forms | |
| ========================================================================== */ | |
| ul.gform_fields { | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .gform_fields, .content .gform_fields { |
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
| //Set global height, border, box shadow and radius for input field and selects | |
| //Remove webkit appearance | |
| input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, .form-select:not(.chosen-container), .chosen-container .chosen-single, textarea{ | |
| -webkit-appearance:none; | |
| /*replace these scss styles with css if needed*/ | |
| @include box-shadow(none); | |
| @include border-radius(0px); | |
| border-color:#ccc; | |
| height:35px; | |
| } |
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 add_custom_content_to_analysis( $content ) { | |
| global $post; | |
| $custom = get_post_custom( $post->ID ); | |
| $custom_content = ''; | |
| foreach( $custom as $field ) | |
| { | |
| $custom_content .= $field[0].' '; | |
| } | |
| return $content . ' ' . $custom_content; | |
| } |
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
| USE DBNAME_LOCAL; | |
| UPDATE wp_EXT_options SET option_value="http://LOCALURL:8888" WHERE option_name="siteurl"; | |
| UPDATE wp_EXT_options SET option_value="http://LOCALURL:8888" WHERE option_name="home"; |
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 the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
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
| /* ---------------------------------------------------------------------------------------------------- | |
| Super Form Reset | |
| A couple of things to watch out for: | |
| - IE8: If a text input doesn't have padding on all sides or none the text won't be centered. | |
| - The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders. | |
| - You NEED to set the font-size and family on all form elements | |
| - Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs |
NewerOlder