Skip to content

Instantly share code, notes, and snippets.

View dotherightthing's full-sized avatar

Dan Smith dotherightthing

  • Do The Right Thing
  • Wellington, New Zealand
View GitHub Profile
@dotherightthing
dotherightthing / migrate-wordpress-database-to-a-new-local-host.md
Created August 15, 2019 12:46
[Migrate WordPress database to a new local host] #wordpress

Migrate WordPress database to a new local host

Created: 2017.03.28

This is also useful if you rename your virtual host, then wonder why WordPress isn't working anymore!

  1. Download interconnectit/Search-Replace-DB
  2. Extract to a folder within your WordPress installation
  3. Point a browser at the local folder URL
  4. The program will automatically the database details stored in wp-config.php
@dotherightthing
dotherightthing / create-remote-bitbucket-repository-from-local.md
Last active August 15, 2019 12:42
[Create remote Bitbucket repository from local] #git

Create remote Bitbucket repository from local

Created: 2017.03.31

Sourcetree repository browser menu.

Option to also create a remote repository.

Update: this requires further steps when pushing commits.

@dotherightthing
dotherightthing / wordpress-markdown-editors.md
Created August 15, 2019 12:38
[WordPress Markdown editors] #wordpress
@dotherightthing
dotherightthing / get-jquery-version.md
Created August 15, 2019 12:36
[Get jQuery version] #javascript

Get jQuery version

Created 2017.03.29

jQuery().jquery
@dotherightthing
dotherightthing / promises.md
Created August 15, 2019 12:35
[Promises] #javascript
@dotherightthing
dotherightthing / customising-woocommerce.md
Created August 15, 2019 12:33
[Customising Woocommerce] #wordpress

Customising Woocommerce

Created: 2017.03.29

Styling a certain page

Add a body class:

add_filter('body_class','wpa76627_class_names');
@dotherightthing
dotherightthing / run-php-in-terminal.md
Created August 15, 2019 12:32
[Run PHP in Terminal] #php
@dotherightthing
dotherightthing / apple-pay.md
Last active August 15, 2019 12:21
[Apple Pay] #ios

Apple Pay

Created: 2017.03.29

An Upwork project showed some functionality that presented an Apple Pay button to iOS users.

Apple Pay, which lives inside the Wallet app, keeps all your credit cards, debit cards, store cards, and loyalty cards safe and secure on your iPhone or iPad. With Apple Pay you can use your Visa, Mastercard, American Express card, or Discover Card at any store that accepts tap-to-pay, or in any app that incorporates it. With Wallet, you can also board a plane, scan for your coffee, get into a movie or concert, accumulate loyalty points, and more. All right from your lock screen or with the tap of an icon.

Layout bug involving an Apple Pay button.

@dotherightthing
dotherightthing / customise-archive-h1.md
Last active August 15, 2019 12:16
[Customise Archive H1] #wordpress
@dotherightthing
dotherightthing / customizer-theme-support-features.md
Created August 15, 2019 12:15
[Customizer: Theme Support] #wordpress

Customizer: Theme Support

Created: 2017.03.30

From add_theme_support:

Allows users to customise a theme via Appearance > Customise

Note that settings made in Theme A's Customiser will be lost when switching to Theme B