Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -Eeuo pipefail
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/provisioner"
CONFIG_FILE="$CONFIG_DIR/config.toml"
mkdir -p "$CONFIG_DIR"
if [[ ! -f "$CONFIG_FILE" ]]; then
cat >"$CONFIG_FILE" <<'EOF'
#!/usr/bin/env bash
set -Eeuo pipefail
CONFIG_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/provisioner/config.toml"
TEMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TEMP_DIR"' EXIT
read_config_bool() {
local section="$1"
@alchemizt33
alchemizt33 / README.md
Last active April 20, 2020 00:06
Add new Header Styles to Mai Lifestyle Pro theme

This will create two new Header Styles in the customizer for the Mai Lifestyle Pro child theme for Genesis Framework.

First create the directores lib and js. Add mai-customizations.php to lib. Add custom.js to js. Add the following lines to your functions.php file:

// Enqueue Custom JS script add_action( 'wp_enqueue_scripts', 'enqueue_custom_script' ); function enqueue_custom_script() { wp_enqueue_script( 'custom', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ), '1.0.0' ); }