Skip to content

Instantly share code, notes, and snippets.

Damien Carbery damiencarbery

Block or report user

Report or block damiencarbery

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View playlist-with-download-link.php
@damiencarbery
damiencarbery / genesis-remove-page-title.php
Created May 22, 2019
Remove the entry-header area on pages. Do not change single posts or archives
View genesis-remove-page-title.php
<?php
/*
Plugin Name: Remove page title (Genesis)
Plugin URI: http://www.damiencarbery.com
Description: Remove the entry-header section (with page title, post info and featured image) from pages but not posts or archives.
Author: Damien Carbery
Version: 0.1
*/
@damiencarbery
damiencarbery / carousel-in-boss-pro.php
Last active May 13, 2019
Replace Boss Pro header with carousel - Liven up the Boss Pro home hero area with a carousel. https://www.damiencarbery.com/2019/05/replace-boss-pro-header-with-carousel/
View carousel-in-boss-pro.php
@damiencarbery
damiencarbery / multisite-plugins-activated.php
Last active May 6, 2019
Active Multisite Plugins: List of active plugins on a Multisite installation. https://www.damiencarbery.com/2019/05/active-multisite-plugins/
View multisite-plugins-activated.php
<?php
/*
Plugin Name: Multisite Plugins Activate
Plugin URI: http://www.damiencarbery.com
Description: List of active plugins on a Multisite installation.
Author: Damien2
*/
// Based on: http://wordpress.stackexchange.com/a/54782/57684
@damiencarbery
damiencarbery / move-title-off-hero-essence-pro.php
Created Apr 29, 2019
Move title off hero image in Essence Pro: Move title off the hero image and back into the content area in Essence Pro theme https://www.damiencarbery.com/2019/04/move-title-off-hero-image-in-essence-pro/
View move-title-off-hero-essence-pro.php
<?php
/*
Plugin Name: Move title off hero image in Essence Pro
Plugin URI: https://www.damiencarbery.com/2019/04/move-title-off-hero-image-in-essence-pro/
Description: Move title off the hero image and back into the content area in Essence Pro theme.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1
*/
View slug-to-body-class.php
<?php
/*
Plugin Name: Slug to Body Class
Version: 0.1
Plugin URI: http://www.wpbeginner.com/wp-themes/how-to-add-page-slug-in-body-class-of-your-wordpress-themes/
Description: Add Page/Post Slug to Body Class
Author: Syed Balkhi
Author URI: https://plus.google.com/101623299936375408403/
*/
View essence-pro-titles-to-content.php
<?php
// Disable putting the page title on top of the hero image but retain the hero image creation.
add_action( 'genesis_meta', 'lmtt_essence_page_hero_header', 5 );
function lmtt_essence_page_hero_header() {
remove_action( 'genesis_meta', 'essence_page_hero_header' );
// Hero area setup.
add_action( 'genesis_before_header', 'essence_header_hero_start' );
add_action( 'genesis_after_header', 'essence_header_title_wrap', 90 );
add_action( 'genesis_after_header', 'essence_header_title_end_wrap', 98 );
@damiencarbery
damiencarbery / wc-remove-zero-decimals.php
Created Apr 14, 2019
Remove Zero Decimals from WooCommerce: Remove decimal portion of WooCommerce price if it is zero. https://www.damiencarbery.com/2019/04/remove-zero-decimals-from-wooCommerce/
View wc-remove-zero-decimals.php
<?php
/*
Plugin Name: Remove Zero Decimals from WooCommerce
Plugin URI: Plugin URI: https://www.damiencarbery.com/
Description: Remove decimal portion of WooCommerce price if it is zero.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1
*/
@damiencarbery
damiencarbery / wc-remove-zero-decimals.php
Created Apr 12, 2019
Remove Zero Decimals from WooCommerce: Remove decimal portion of WooCommerce price if it is zero.
View wc-remove-zero-decimals.php
<?php
/*
Plugin Name: Remove Zero Decimals from WooCommerce
Plugin URI: Plugin URI: https://www.damiencarbery.com/
Description: Remove decimal portion of WooCommerce price if it is zero.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1
*/
@damiencarbery
damiencarbery / menu-hover-effects.php
Last active Apr 9, 2019
Menu Hover Effects - Almost drop-in menu effects from codrops. https://www.damiencarbery.com/2019/04/menu-hover-effects/
View menu-hover-effects.php
<?php
/*
Plugin Name: Menu Hover Effects
Plugin URI: https://www.damiencarbery.com/2019/04/menu-hover-effects/
Description: Add hover effects to menus.
Author: Damien Carbery
Version: 0.1
*/
You can’t perform that action at this time.