Skip to content

Instantly share code, notes, and snippets.

@nathaningram
nathaningram / itsec-captcha-style.php
Created February 9, 2023 21:50
Add Stye to iThemes Security Captcha Agree Box
// Add Style to iTSec Captcha Agree Text
function bww_itsec_captcha_style() { ?>
<style type="text/css">
.itsec-recaptcha-opt-in {
border: 4px dashed #ff0000 !important;
background: #ffffff !important;
}
.itsec-recaptcha-opt-in::before {
@nathaningram
nathaningram / cpt-blocks.php
Created February 7, 2023 15:15
Convert to Block Support Per Post Type
// Adds Convert to Block Support Per Post Type
// Used along with Convert to Blocks plugin by 10up
// https://wordpress.org/plugins/convert-to-blocks/
add_filter( 'post_type_supports_convert_to_blocks', function( $supports, $post_type ) {
if ( $post_type === 'YOUR_CPT_SLUG_HERE' ) {
return true;
}
return $supports;
}, 10, 2 );
@nathaningram
nathaningram / styles.css
Last active December 17, 2023 01:47
Optimizing Your Starter Site - CSS Samples
/********* Kadence Menu *********/
/* Hides the underline on current menu items in underline style */
.header-navigation-style-underline .current-menu-item a:after,
.header-navigation-style-underline .menu-item-has-children a:after {
display: none;
}
.header-navigation-style-underline .current-menu-item a:hover:after {
@nathaningram
nathaningram / bb-delete-cache.php
Created November 2, 2022 18:58
Creating a Starter Site 2022 - MU Beaver Builder Delete Cache
<?php
/*
Plugin Name: BB delete cache
Plugin URI: http://www.wearewp.pro
Description: Add delete beaver builder cache button in admin bar
Contributors: wearewp, thierrypigot
Author: WeAreWP
Author URI: http://www.wearewp.pro
Text Domain: bb-delete-cache
Domain Path: /languages/
@nathaningram
nathaningram / cfdashwidgets.php
Last active April 14, 2024 14:10
Creating a Starter Site - Custom Functions - Dashboard Widgets
<?php
/*
Plugin Name: Custom Dashboard Widgets
Plugin URI: https://nathaningram.com
Description: Creates Custom Dashboard Widgets for Client Websites
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
@nathaningram
nathaningram / cfshortcodes.php
Last active April 14, 2024 09:22
Creating a Starter Site 2023 - Custom Functions - Shortcodes
<?php
/*
Plugin Name: Custom Shortcodes
Plugin URI: https://nathaningram.com
Description: Add Custom Shortcodes
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
@nathaningram
nathaningram / cfmedia.php
Last active April 14, 2024 12:00
Creating a Starter Site 2022 - Custom Functions - Media Handling
<?php
/*
Plugin Name: Custom Media Handling Fuctions
Plugin URI: https://nathaningram.com
Description: Customize WordPress Default Media Behavior
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
@nathaningram
nathaningram / cfbeaver.php
Last active April 14, 2024 14:10
Creating a Starter Site 2022 - Custom Functions - Beaver Builder
<?php
/*
Plugin Name: Custom Functions for Beaver Builder
Plugin URI: https://nathaningram.com
Description: Extend and Customize Beaver Builder
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
@nathaningram
nathaningram / cfgravity.php
Last active April 14, 2024 14:10
Creating a Starter Site 2022 - Custom Functions - Gravity Forms
<?php
/*
Plugin Name: Custom Gravity Forms Fuctions
Plugin URI: https://nathaningram.com
Description: Customize Gravity Forms Default Behavior
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/
@nathaningram
nathaningram / cfcore.php
Last active April 14, 2024 08:55
Creating a Starter Site - Custom Functions - Core
<?php
/*
Plugin Name: Custom Core Functions
Plugin URI: https://nathaningram.com
Description: Customize the WP Core
Version: 2023.11
Author: Nathan Ingram
Author URI: https://nathaningram.com
License: GPL2
*/