xcode-select --install
- Download the Space Gray colour theme
| <?php | |
| /** | |
| * @source : https://github.com/Yoast/wordpress-seo/issues/6219 | |
| **/ | |
| add_action( 'vc_backend_editor_render', 'bea_fix_conflict', 9999 ); | |
| function bea_fix_conflict() { | |
| wp_dequeue_script( 'vc_vendor_yoast_js' ); | |
| if ( wp_script_is( 'yoast-seo-post-scraper' ) ) { |
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Change size for Yoast SEO OpenGraph image for all content | |
| * Credit: Yoast Development team | |
| * Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1 | |
| * Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail' | |
| * Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/ | |
| */ | |
xcode-select --install
| (function($) { | |
| /* | |
| * new_map | |
| * | |
| * This function will render a Google Map onto the selected jQuery element | |
| * | |
| * @type function | |
| * @date 8/11/2013 | |
| * @since 4.3.0 |
| html { | |
| /* Adjust font size */ | |
| font-size: 100%; | |
| -webkit-text-size-adjust: 100%; | |
| /* Font varient */ | |
| font-variant-ligatures: none; | |
| -webkit-font-variant-ligatures: none; | |
| /* Smoothing */ | |
| text-rendering: optimizeLegibility; | |
| -moz-osx-font-smoothing: grayscale; |
| /* Make the element pulse (grow large and small slowly) */ | |
| /* Usage | |
| .myElement { | |
| animation: pulsate 1s ease-out; | |
| animation-iteration-count: infinite; | |
| opacity: 1; | |
| } | |
| */ | |
| @-webkit-keyframes pulsate { | |
| 0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;} |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
| <?php | |
| function do_var_dump($object) { | |
| echo "<pre>"; | |
| var_dump($object); | |
| echo "</pre>"; | |
| } | |
| ?> |
| /* | |
| * Replace all SVG images with inline SVG | |
| */ | |
| jQuery('img.svg').each(function(){ | |
| var $img = jQuery(this); | |
| var imgID = $img.attr('id'); | |
| var imgClass = $img.attr('class'); | |
| var imgURL = $img.attr('src'); | |
| jQuery.get(imgURL, function(data) { |