Skip to content

Instantly share code, notes, and snippets.

Ryan Labelle ryanlabelle

Block or report user

Report or block ryanlabelle

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 MotoPress Hotel Booking Custom text on checkout
$GLOBALS['themo_extra_adult_text'] = true;
$GLOBALS['themo_extra_child_text'] = true;
$GLOBALS['themo_extra_pet_text'] = true;
$GLOBALS['themo_extra_cleaning_text'] = true;
function themo_mphb_translate_service_callback( $service ) {
// Maybe modify $example in some way.
if(isset($service) && $service->getTitle() == 'Extra Adult' && $GLOBALS['themo_extra_adult_text'] ) {
echo '<li class="themo_rate_notice">Rate set per night based on double occupancy (2 guests). Check-in any additional adults here. 5 guests total is the maximum. </li>';
ryanlabelle / vendor_footer.js
Created Feb 23, 2019
vendor_footer.js without Retina.js
View vendor_footer.js
View Adding WPML Flags in Top Menu img
{border:1px solid #e7e7e7;
@media screen and (min-width: 750px) {, a
{margin:6px 0 0 0 !important; padding:0 2px 18px 0 !important;
} a
View Elementor Add Control to Existing Widget
/* Add Image Stretch Option Control to the Image Gallery Widget */
add_action( 'elementor/element/before_section_end', function( $element, $section_id, $args ) {
/** @var \Elementor\Element_Base $element */
if ( 'image-gallery' === $element->get_name() && 'section_gallery' === $section_id ) {
'label' => __( 'Image Stretch', 'elementor' ),
'type' => \Elementor\Controls_Manager::SELECT,
View MW-style.css
Theme Name: Moorewilson Child Theme
Theme URI:
Description: Child theme for Moore Wilson
Author: Honeycomb
Author URI:
Template: moorewilson
Version: 1.0
ryanlabelle / shortcodes.php
Created Mar 3, 2015
Temp fix for booked plugin (line 47)
View shortcodes.php
$atts = shortcode_atts(
'size' => 'large',
'calendar' => false,
'year' => false,
'month' => false,
'switcher' => false,
'post_id' => false
), $atts );
ryanlabelle / .htaccess
Created Jan 16, 2015
.htaccess file example for WordPress install. Helps setup compression and caching. Tested on Debian "wheezy" running Apache
View .htaccess
# Turn off eTags
Header unset ETag
FileETag None
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|woff)$
mod_gzip_item_include handler ^cgi-script$
You can’t perform that action at this time.