Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / menu-underline.css
Created September 18, 2024 06:41
Menu with expanding underline under Menu Items
/* Underlines not on mobile - Change Menu name and background color to suit
*
@media(min-width:768px) {
#menu-primary-menu>li>a::after {
content: '';
position: absolute;
background-color: #00778F;
height: 2px;
bottom: 2px;
@neilgee
neilgee / style.css
Last active October 30, 2024 04:29
CSS Teaks for WP Google Review Slider
/* Google Review Sider & Grid
--------------------------------------------- */
/* Google Review Plugin Swap #000000 and #ffb200 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
<?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
<?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
/* 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
.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
<?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
<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
<script>
(function ($) {
$(function () {
clickContainer();
});
@neilgee
neilgee / customizer-new-panel.php
Last active June 12, 2021 02:52
Customizer Add New Panel
<?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 ) {