Skip to content

Instantly share code, notes, and snippets.

View UrbanFugitive's full-sized avatar

Urbanfugitive UrbanFugitive

View GitHub Profile
@Rados51
Rados51 / repeater-id-fix.js
Last active October 12, 2021 22:21
Synced via Snip
// All styling have to be inside a class
(function ($) {
let repeaterIdName = $(".oxy-dynamic-list").find("*").attr("id");
let repeaterIdCount = 1;
$(function () {
$(".oxy-dynamic-list")
.find("div")
.each(function (i) {
if ($(this).attr("class").includes("ct-div-block")) {
$(this).attr({ id: `${repeaterIdName}-${repeaterIdCount}` });
@yankiara
yankiara / oxygen-repeater-dynamic-query.php
Last active September 6, 2023 19:25
Use dynamic queries with Oxygen's repeater
/* I'll put here different examples of dynamic query for Oxygen repeater :
* - Use one of the following repeater_dynamic_query definitions
* in code block just BEFORE the repeater
* - Set the repeater custom query settings : post type, number of posts, order...
* - Add the remove_action in a code block AFTER the repeater
*/
/****************************************************************************************************
* Display related posts for any CPT with taxonomy:
@davidofwatkins
davidofwatkins / google-fonts-sync-git.md
Last active November 23, 2023 14:47
Keep MacOS Fonts Updated with Google Fonts

Google Fonts suggests syncing fonts to your computer with a tool called SkyFonts. However, if you're running MacOS and want to keep your machine updated with all Google Fonts without any extra software, you can do this with Git, thanks to the Google Fonts Repo.

To do this, run the following in your terminal:

cd ~/Library/Fonts/
git clone --depth 1 https://github.com/google/fonts.git google-fonts

Done! In the future, you can download new fonts by running: