Skip to content

Instantly share code, notes, and snippets.

@vHeemstra
vHeemstra / README.md
Last active May 27, 2024 20:33
Importing Font Awesome 6 as Custom Icon set in Elementor Pro

Using Font Awesome 6 as Custom Icon set in Elementor

As many already know, Elementor is very reluctant to stay up-to-date with their CMS. It still uses Font Awesome version 5 and if you don't have a Pro license for Font Awesome, it is very difficult to integrate FA6 as icons.

So to help fellow developers, here is how you can do it!

In Elementor you can import icon sets that are exported by Fontello (as ZIP).

Because Fontello does not support FA6, you have to generate this ZIP file yourself.

@vHeemstra
vHeemstra / squash-and-merge-cli.md
Created July 24, 2022 17:56 — forked from aortbals/squash-and-merge-cli.md
Squash and Merge on the Command line

With the introduction of GitHub's Squash and Merge feature, this has become less prevelant, however it's still useful in scenarios where GitHub's interface is unavailable.

Let's talk through two ways to do a squash and merge on the command line.

Take 1: Interactive Rebase

When to use it

  • When you have not merged main into your feature branch
  • There are no merge conflicts
@vHeemstra
vHeemstra / myscript.sh
Created June 23, 2022 09:24 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@vHeemstra
vHeemstra / README.md
Last active May 24, 2022 00:22
Test case example of issue and missing feature in `gulp-wp-pot`/`wp-pot`

Test case using gulp-wp-pot/wp-pot

This minimal test case shows two things concerning the gulp-wp-pot/wp-pot package.

1. An issue with duplicate translator hint descriptions ('extractor comments' in gettext)

If you use a translation string that has a placeholder (e.g. %s or %1$s) in multiple files, the plugin extracts these correctly. But it outputs the comment for each time is was used, so there are duplicates filling up the resulting .pot file. See result.pot, lines 17-18.

2. A missing nice-to-have-feature