Skip to content

Instantly share code, notes, and snippets.

View curtisnehring's full-sized avatar

Curtis Nehring curtisnehring

View GitHub Profile
@curtisnehring
curtisnehring / WORDPRESS-THEME_functions.php
Created April 3, 2021 22:51
Code to remove classes from the body tag
<?php
/***
* Load one of these functions in your (child)theme's functions.php
* Which depends on your needs
* use _bodyclass() to remove classes added/loaded via the WP body_class() function
* use _jquery() to remove classes that are not added/loaded via the WP body_class() function with jQuery
* use _javascript() to remove classes that are not added/loaded via the WP body_class() function with a JavaScript only solution
* Need help? => CodeByCurtis.com
**/
@curtisnehring
curtisnehring / WORDPRESS-PLUGIN_main.php
Last active April 3, 2021 22:48
Code to re-order a Wordpress plug-in's load order to place it first or last depending on need
<?php
/***
* Load one of these functions at the top of you plug-in's main .php file
* Which depends on your needs
* _first() will load it first; _last() will load it last
* Need help? => CodeByCurtis.com
**/
/**
* position a plugin to load first or last depending on push or unshift
@curtisnehring
curtisnehring / WORDPRESS-THEME_functions.php
Last active April 3, 2021 22:48
Code to re-order Wordpress plug-in load order to place a specifc plugin first or last depending on need
<?php
/***
* Load this in your (child)theme's functions.php
* Need help? => CodeByCurtis.com
**/
// order plugins that are causing issues
function cbc_order_plugins() {
$active_plugins = get_option('active_plugins');