Skip to content

Instantly share code, notes, and snippets.

View amyh's full-sized avatar

Amy Helfman amyh

View GitHub Profile
@startinggravity
startinggravity / lando-emulsify.md
Last active October 29, 2019 01:50
Using Lando with Emulsify

I have had a few requests for more information about using Lando with Drupal 8, the Emulsify theme and Gulp. In order to put what I've learned in one place, I'm adding my notes here.

My initial problem was reported here, but since then I have discovered a few additional things worth noting.

Once you have a working site on Lando and are ready to install Emulsify use the following directions instead of what has provided by the Emulsify developers. These instructions assume you have used Composer to install Drupal and that the root Drupal files are in the /web directory.


NOTE: To follow these instructions, you will need to run NPM commands from your host machine, which means you must have Node and NPM installed. Fortunately, they are installed together in one installation. If you wish to confirm you have them installed, run node -v and npm -v. To install, visit nodejs.org and follow the i

@ChrisCree
ChrisCree / Usage.txt
Created October 21, 2015 18:17
Genesis 2.2+ custom archive page template for customizing sitemap output. Copy the page_archive.php file, edit it as desired per the Usage.txt instructions below, and FTP it up to your Genesis child theme directory. Then create a page using the Archive page template to display your results.
The functions can be modified as needed using parameters from the WordPress Codex.
For example, to exclude specific pages line 30 above would be changed to this instead:
$sitemap .= sprintf( '<ul>%s</ul>', wp_list_pages( 'title_li=&echo=0&exclude=174,180' ) );
Where 174 & 180 are the page ID's of the pages to be omitted.
Here are the respective Codex pages for each function to find what parameters can be used:
wp_list_pages()
https://codex.wordpress.org/Function_Reference/wp_list_pages