Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / style.css
Last active September 30, 2023 05:46
CSS Teaks for WP Google Review Slider
View style.css
/* Testimonials
--------------------------------------------- */
/* Google Review Plugin Swap #32407b and #fff for your colors */
@media(min-width:768px) {
/* Testimonials Equal Height*/
.wprevpro_t1_outer_div {
display: flex;
@neilgee
neilgee / functions.php
Last active July 5, 2023 03:41
gridbuilderWP with PowerPack Off-Canvas Menu - auto close menu on facet refresh/change
View functions.php
<?php ~> don't add me / this function calls the script.js
add_filter( 'wp_grid_builder/frontend/register_scripts', 'prefix_register_script' );
//gridbuilder external js script
function prefix_register_script( $scripts ) {
$scripts[] = [
'handle' => 'global',
'source' => '/wp-content/themes/mytheme/js/script.js',
@neilgee
neilgee / runcloud-beaver-buster.php
Last active December 19, 2021 13:55
Purge RunCloud Cache On Extra Beaver Hooks
View runcloud-beaver-buster.php
<?php
/**
* Plugin Name: Runcloud BeaverCache Purge Helper
* Plugin URI: https://gist.github.com/neilgee/4a251b24f65a70849ab122afa6dfac0fp
* Description: Adding additional hooks to trigger RunCloud or lscache plugin purges
* Version: 0.1
* Author: Paul Stoute, Jordan Trask, Jeff Cleverly, Neil Gowran
* Author URI: https://github.com/jordantrizz/cache-purge-helper
* Text Domain: runcloud-beaver-cache-purge-helper
@neilgee
neilgee / 2-col-woo-checkout.css
Last active December 4, 2021 08:11
WooCommerce 2-column checkout page
View 2-col-woo-checkout.css
/* 2-col WooCommerce Checkout - tested in BB Theme, Generate Press, TwentyTwelve, TwentyThirteen, TwentyFourteen TwentyFifteen, TwentySixteen, TwentySeventeen and TwentyNineteen */
/* TwentyTwenty and TwentyTwentyOne already have this CSS or similar */
@media(min-width:768px) {
.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
width: 90%;
}
@neilgee
neilgee / icon-canvas.css
Last active October 23, 2021 23:21
Beaver Builder - Icon Canvas enlarge
View icon-canvas.css
.fl-icon-selector .fl-lightbox {
height: 100%;
width: 100%;
margin-top: 0 !important;
}
@neilgee
neilgee / webhook.php
Last active October 6, 2022 13:53
WooCommerce Webhook Custom Action Hook
View webhook.php
<?php
/**
* Plugin Name: Woo Custom Webhook
* Plugin URI: https://wpbeaches.com/send-full-product-details-over-woocommerce-webhook-action-hook/
* Description: Custom WooCommerce Webhook Action
* Author URI: https://github.com/woocommerce/woocommerce/issues/20336#issuecomment-829510702
* Version: 0.1.0
*/
@neilgee
neilgee / simple-newsletter.html
Created August 3, 2021 05:42
Simple HTML Newsletter
View simple-newsletter.html
<div id="wrapper" dir="ltr"
style="background-color: #f5f5f5; margin: 0; -webkit-text-size-adjust: none !important; padding: 3%; width: 94%;">
<table class="wrapper-table" style="margin: auto; max-width: 900px; width: 100%;" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td id="template_header"
style="background-color: #ffffff; border: 1px solid #e5e5e5; padding: 15px; color: #ffffff; font-family: Arial;"
align="center" valign="middle">
<div id="template_header_logo" style="width: 100%;">
@neilgee
neilgee / bricks-container-click.js
Last active May 20, 2021 22:31
Bricks Container Click
View bricks-container-click.js
<script>
(function ($) {
$(function () {
clickContainer();
});
@neilgee
neilgee / customizer-new-panel.php
Last active June 12, 2021 02:52
Customizer Add New Panel
View customizer-new-panel.php
<?php
add_action( 'customize_register', 'bt_register_theme_customizer', 20 );
/**
* Add new panel
* Register for the Customizer
* @since 1.0.0
*/
function bt_register_theme_customizer( $wp_customize ) {
@neilgee
neilgee / cloudflare.cnf
Created March 31, 2021 02:20
Cloudflare Conf - Fail2Ban
View cloudflare.cnf
#
# Author: Mike Rushton
#
# IMPORTANT
#
# Please set jail.local's permission to 640 because it contains your CF API key.
#
# This action depends on curl (and optionally jq).
# Referenced from http://www.normyee.net/blog/2012/02/02/adding-cloudflare-support-to-fail2ban by NORM YEE
#