You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Jake Bellacera
jakebellacera
Engineering manager at @harness, helping build the future of feature management and experimentation.
This file contains 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
Bootstrap 4 menus in WordPress via filters. No walker needed!
Bootstrap 4 menus in WordPress with filters
No walker needed!
This snippet allows you to create Bootstrap 4 menus without the use of a Walker. Instead, we're using filters to leverage WordPress core functionality as much as possible. Basically, all you need to do is this and you're done:
If your WordPress site utilizes both Co-Authors Plus and Yoast, you may be aware that the two plugins don't fully integrate with eachother. The PHP code below fixes the following issues:
When viewing a Co-Author's page, Yoast's author name (%%name%%) meta tag template variables will properly show the Co-Author's name.
When viewing a Co-Author's page, Yoast's breadcrumb trail will properly show the Co-Author's name.
How to install
Simply drop the code below into your theme's functions.php file.
Robots.txt file instructing crawlers to not crawl any pages on the hostname
This file contains 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
Default htaccess configuration for a WordPress site
This file contains 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
How to set up a pantheon lando application without the proxy on macOS 10.12+
How to set up a pantheon lando application without a proxy on macOS 10.12+
This guide explains how to use a pantheon lando application without the proxy server on your local machine. Instead of using a proxy server, you will use dnsmasq and pfctl to port forward your lando application's webserver ports to 80 and 443.
Note: you will have to perform some manual interactions for each lando application you create. See the instructions below.
Perhaps you're writing an ordered list in markdown and you need to add a list item or two with multiple lines. You try to write it, but your numbers keep resetting! What gives?
What you need to do is add a space after each additional line in a list item.
Quick example
1. Item number one
Second line in item number one.
This article walks you through how to get the ID of any YouTube video.
How to get a YouTube video ID from a youtube.com page URL
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v= URL parameter.
How to install a basic Apache, PHP and MySQL development environment with Homebrew. Mirrored from the Echo & Co. blog.
How to install a basic Apache, PHP and MySQL development environment with Homebrew
This guide will walk you through the steps required to install a basic Apache, PHP and MySQL development environment using homebrew. Basically, all you'll need to do is copy the commands below into Terminal. Copy one block at a time.
NOTE: this guide is mirrored from Echo & Co.'s blog in case the original blog post or the website decides to go down. I've shared this guide around many times to colleagues and friends. Please give Alan Ivey (@alanthing) all of the credit for publishing this really helpful guide.
Before we begin...
We're going to need to install homebrew, a super awesome package manager for OS X. Installation instructions are available on the homebrew website.
This file contains 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