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 / disable-emojis-plugin.md
Created August 15, 2019 12:14
[Disable Emojis plugin] #wordpress

Disable Emojis plugin

Created 2017.30.29

Disable Emojis plugin.

Emojis are problematic because the _wpemojiSettings script tag is output into the <head> rather than the footer.

Async script loaders like Google's webfont.js inject themselves before the first <script> tag, therefore into the header.

@dotherightthing
dotherightthing / search-sourcetree-commits.md
Last active August 15, 2019 12:11
[Search SourceTree commits] #git

Search SourceTree commits

Created: 2017.03.30

Search results in SourceTree.

Results!

@dotherightthing
dotherightthing / social-proof.md
Last active August 15, 2019 12:05
[Social Proof] #seo

Social Proof

Created: 2017.03.30

From The Power of Social Proof:

If you are looking to make an impact in your market, one easy way to do so is by adding features of social proof to your website. In case you aren’t familiar with the term “social proof,” it is the phenomenon where people do things that they see others doing. They often assume that other people understand more about the situation then they do. As a result, they consider that other people are better informed

Website owners have found that integrating customer reviews, feedback and testimonials can consistently take sales to the next level. In fact, various studies have shown that adding this element of social behavior to your site can not only increase sales, but also increase the average transaction amount, and even lower product returns.

@dotherightthing
dotherightthing / the-wordpress-template-hierarchy.md
Created August 15, 2019 11:55
[The WordPress Template Hierarchy] #wordpress
@dotherightthing
dotherightthing / pass-php-variable-to-enqueued-javascript.md
Created August 15, 2019 11:54
[Pass PHP variable to enqueued JavaScript] #wordpress
@dotherightthing
dotherightthing / sublime-wordpress-completions.md
Created August 15, 2019 11:52
[Sublime: WordPress Completions] #wordpress
@dotherightthing
dotherightthing / scrape-a-wix-website.md
Last active August 15, 2019 11:49
[Scrape a Wix website] #scraping #wix

Scrape a Wix website

Created: 2017.03.31

Considerations

  1. It would be fairly easy to 'Save page as' and recreate a Wix design by replacing text and media content with custom fields
  2. JavaScript widgets may be under Wix copyright, so these would need to be replaced with a substitute
  3. Like other page builders, Wix uses absolute positioning, so to replicate the layout, it may be necessary to match an incorrect content order
  4. Most styling is inline, this needs to be extracted to a stylesheet and the inline styles replaced with classname hooks. Further work would be required to optimise the resulting classnames into a clean UI framework.
@dotherightthing
dotherightthing / acf-plugins.md
Created August 15, 2019 11:31
[ACF plugins] #wordpress
@dotherightthing
dotherightthing / sitesucker-settings-for-wix-rips.md
Last active August 15, 2019 11:30
[SiteSucker settings for Wix rips] #wix #scraping

SiteSucker settings for Wix rips

Created: 2017.07.10

General:

General settings.

Log:

@dotherightthing
dotherightthing / wordpress-maintenance-mode.md
Last active August 15, 2019 11:32
[WordPress Maintenance Mode] #wordpress