Skip to content

Instantly share code, notes, and snippets.

View thomasjulienalain's full-sized avatar

Julien Thomas thomasjulienalain

View GitHub Profile
@thomasjulienalain
thomasjulienalain / oxygen-repeater-dynamic-query.php
Created December 6, 2020 15:07 — forked from yankiara/oxygen-repeater-dynamic-query.php
Use dynamic queries with Oxygen's repeater
/*
* Example of related posts repeater for any CPT with taxonomy:
* - Filter query to prevent altering queries inside the repeater items,
* - Retrieve post category slug : I have only one for each post, so I just take first element.
* (You might need to add error tests, of course, if you don't accept empty results,
* for instance if you forgot to set post category.)
* - Set tax_query arg with category slug
* - Set random order
* - Exclude current post
* - Deactivate pagination
@thomasjulienalain
thomasjulienalain / gist:871ca31ca2bf45e9c9b1e5e0098bf605
Last active June 18, 2020 20:14
Marielle Savard > Afficher la photo derrière la bande titre
#slider-carousel {
background-image: url(https://www.residenconsult.com/wp-content/uploads/2020/06/qtq80-J77lmR.jpeg);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: scroll;
}
@thomasjulienalain
thomasjulienalain / gist:fec6f0a9dae4831b77f45cf9f6638bfa
Last active June 17, 2020 20:19
Changer la couleur de la bande demo_store de WooCommerce
/* Changer la couleur de la bande demo_store de WooCommerce */
.demo_store {
background-color: #3d9cd2 !important;
color: #fff !important;
}