This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
overflow-x: hidden; | |
font-family: Arial, sans-serif; | |
} | |
.e-n-carousel { | |
overflow: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
@media (min-width: 768px) { | |
.e-n-carousel { | |
overflow: hidden; | |
height: 100vh; | |
position: relative; | |
} | |
.elementor-swiper-button-next, | |
.elementor-swiper-button-prev { | |
display: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |