Skip to content

Instantly share code, notes, and snippets.

View efinit's full-sized avatar
💭
I may be slow to respond.

E'finit efinit

💭
I may be slow to respond.
View GitHub Profile
[user]
name = Eric Patiño
email = efinit@gmail.com
[core]
excludesfile = /Users/efinit/.gitignore_global
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
@efinit
efinit / gist:ff03239c5d28aa5af1996d0c4c517eab
Created May 1, 2021 19:47 — forked from oooh-boi/gist:a2e47433443125887d20aafd5cec7388
OoohBoi Video Tutorial : Full-height Image Widget in Elementor PRO
/* be sure to copy-paste to the Image Widget Custom CSS panel */
selector,
selector .elementor-widget-container,
selector .elementor-image,
selector .elementor-image > a {
height: 100%;
}
selector .elementor-image img {
object-fit: cover;
object-position: 50% 50%;
@efinit
efinit / gist:3d64b8c28109b24fd70dbc1ae6146202
Created June 6, 2021 03:42 — forked from oooh-boi/gist:80e78f98fb1c0cd48c56a0a414d934b3
Show hide Header on scroll - OoohBoi video tutorial
<script>
"use strict";
OB_ready(OB_doWhenReady);
function OB_doWhenReady() {
// localize everything
var ooohBoi = window.ooohBoi || {};
// local scope variables
ooohBoi.prev_scroll_pos = window.scrollY || document.body.scrollTop;
ooohBoi.cur_scroll_pos;
@efinit
efinit / *Best Snippets*
Created March 21, 2022 06:39
Best PHP/JS Snippets
This is a collection of my most used or most useful PHP and JS snippets
**Disclaimer, I didn't write most of these - I just curated them over the years**
@efinit
efinit / elementor-horizontal-scroll.html
Created January 29, 2025 18:58
Elementor Horizontal Scroll Section Desktop and Mobile
<style>
body, html {
margin: 0;
padding: 0;
overflow-x: hidden;
font-family: Arial, sans-serif;
}
.e-n-carousel {
overflow: hidden;
@efinit
efinit / elementor-horizontal-scroll-desktop.html
Created January 29, 2025 19:01
Elementor Horizontal Scroll Section Desktop by Web Squadron
<style>
@media (min-width: 768px) {
.e-n-carousel {
overflow: hidden;
height: 100vh;
position: relative;
}
.elementor-swiper-button-next,
.elementor-swiper-button-prev {
display: none;
@efinit
efinit / wc-product-thumbnail.php
Last active July 2, 2025 14:03
Add product thumbnail image to WooCommerce order confirmation email, view order and confirmation pages
<?php
add_filter( 'woocommerce_order_item_name', 'display_product_image_in_order_email_item', 20, 3 );
function display_product_image_in_order_email_item( $item_name, $item, $is_visible ) {
$product = $item->get_product(); // Get the WC_Product object (from order item)
$thumbnail = $product->get_image(array( 50, 50)); // Adjust image size as needed
if( $product->get_image_id() > 0 )
$item_name = '<div class="item-thumbnail" style="float: left; margin-right: 10px;">' . $thumbnail . '</div>' . $item_name;
@efinit
efinit / divi-animation-trigger.js
Created September 11, 2025 06:56
Force Re-Trigger Divi Animations
document.addEventListener('DOMContentLoaded', function () {
setTimeout(() => {
window.dispatchEvent(new Event('scroll'));
document.querySelectorAll('.et_pb_module.et_pb_invisible.et_pb_animated').forEach(el => {
el.classList.remove('et_pb_invisible');
});
}, 300);
});