Category: Notes

  • Full Site Editing issues in Gutenberg repo

    https://github.com/WordPress/gutenberg/labels/%5BFeature%5D%20Full%20Site%20Editing


  • Uptime monitoring on Pagely

    https://support.pagely.com/hc/en-us/articles/115002550591-24-7-Website-Uptime-Monitoring-and-Outreach-for-Your-Pagely-VPS


  • Stylesheet to export Ulysses to Google Docs

    https://github.com/jeffstern/ulysses-to-google-docs


  • Remove all empty anchor links from HTML

    I had a page in WordPress with 100+ empty <a> tags (i.e. links with no content) which were polluting the HTML (and causing the block editor to complain).

    Rather than manually go through and remove each one in the code editor view of the page, I pasted everything from the code editor into Sublime Text and then did a regex search and replace with:

    <a href=".*?"><\/a>

    And then:

    <a rel=".*?" href=".*?"><\/a>

    There’s probably an even cleaner way to do it, but that already saved me a lot of time.


  • Gravity Forms emails not sending

    Try setting the From Email address in Forms > [Form Name] > Settings > Notifications to be the same domain as your website.

    Also consider using a plugin like WP Offload SES, WP Mail SMTP or Mailgun to handle all the email for your site.


  • Exclude a site from Enhanced Tracking Protection in Firefox

    In the Firefox address bar, there should be a shield icon on the left of the URL.

    Click this and you will get options to exclude the site from Enhanced Tracking Protection.


  • robots.txt file not updating on WP Engine hosted site

    If you’re on WP Engine and you’re trying to modify robots.txt on a subdomain.wpengine.com URL (i.e. before you launch the site for real), then be aware that robots.txt will always be set to ‘disallow all’ by WP Engine until you associate a custom domain with the site.

    As per their website:

    NOTE: By default, WP Engine restricts the traffic of search engines to any site using the install.wpengine.com domain. This means search engines will not be able to visit sites which are not currently in production using a custom domain.

    Robots.txt and WP Engine, 8 May 2020


  • Delete multiple lines in nano

    For example, when doing $ sudo nano /etc/hosts in the Terminal on Mac.

    1. Move cursor to start of line and type Ctrl + K
    2. Repeat
    3. (Type Ctrl + X to quit)

  • Hard refresh in macOS Safari

    Shift-click the refresh button, or choose View → Reload Page From Origin (⌥⌘R) to refresh ignoring cached resources for the current domain. You can observe the effect in the Web Inspector’s Network tab.

    What I suspect is catching you out here is how a force refresh only bypasses cache for the same domain as the site you’re refreshing. Even with a force refresh, resources may still be cached, such as from CDN domains.

    To bypass cache for all resources, open the web inspector, choose the Network tab, then select ‘Ignore the resource cache when loading resources’. Refresh the page normally (all refreshes ignore cache now, not just ⇧-refresh) and all resources will be loaded from origin.

    For me changing the ‘Ignore the resource cache’ icon from blue to black, seemed to do it.

    Source: keyboard – How to do a complete refresh in Safari 10.1.1 on MacOS Sierra – Ask Different