Skip to content

Instantly share code, notes, and snippets.

View rjcdr's full-sized avatar

Raymond J. rjcdr

  • Canada
View GitHub Profile
<?php
/**
* https://wordpress.org/support/topic/do-not-use-in-woocommerce/
*/
if( class_exists('Mailtpl') ) {
add_action('init',function(){
$mailtpl = Mailtpl::instance();
remove_action( 'woocommerce_email', array( $mailtpl->admin, 'woocommerce_integration'));
remove_action( 'woocommerce_email_settings', array( $mailtpl->admin, 'woocommerce_preview_link'));
@rjcdr
rjcdr / custom-hooks.php
Last active January 22, 2019 19:44 — forked from djrmom/custom-hooks.php
facetwp add tooltips to slider
<?php
/** adds tooltips to slider handles
** https://refreshless.com/nouislider/slider-options/#section-tooltips
** note that you need an array even if you want true for both handles
**/
add_action( 'wp_footer', function() { ?>
<script>
(function($) {
if ('object' != typeof FWP) {
@rjcdr
rjcdr / wp-breadcrumbs.php
Created September 26, 2017 07:09
Breadcrumps for WordPress
<?php
function the_breadcrumb() {
if (!is_home()) {
echo '<a href="';
echo get_option('home');
echo '">';
bloginfo('name');
echo "</a> ";
if (is_category() || is_single()) {
the_category('title_li=');
@rjcdr
rjcdr / wp-taxonomies-for-pages.php
Last active September 26, 2017 05:55
Enable Taxonomies for WordPress Pages
<?php
/* Source: http://spicemailer.com/wordpress/add-categories-tags-pages-wordpress/ */
/* Use this snippet in a custom functionality plugin rather than a theme's functions.php file */
function add_taxonomies_to_pages() {
// Attach built in taxonomies to pages
register_taxonomy_for_object_type( 'post_tag', 'page' );
register_taxonomy_for_object_type( 'category', 'page' );
}
@rjcdr
rjcdr / font-min-max-responsive.scss
Created August 29, 2017 13:32
Viewport sized typography with minimum and maximum values
///
/// Viewport sized typography with minimum and maximum values
///
/// @author Eduardo Boucas (@eduardoboucas)
/// https://eduardoboucas.com/blog/2015/06/18/viewport-sized-typography-with-minimum-and-maximum-sizes.html
///
/// @param {Number} $responsive - Viewport-based size
/// @param {Number} $min - Minimum font size (px)
/// @param {Number} $max - Maximum font size (px)
/// (optional)
@rjcdr
rjcdr / bgtx-inline-checkboxes.html
Last active January 12, 2017 21:05
bgtx inline checkboxes
<!-- enable styling for inline checkboxes -->
<script type="text/javascript">
bQuery(document).ready(function(){
bQuery( "input[type=checkbox]" )
.parentsUntil( "td" )
.addClass( "inline-check" );
});
</script>
@rjcdr
rjcdr / buttons-email-bgtx.html
Last active April 20, 2017 00:10
Email Buttons for BGTX
<!-- Begin One Button -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding: 0;margin: 0;">
<td align="center" style="padding: 0;margin: 0;">
<table border="0" cellpadding="0" cellspacing="0" width="260" class="email-button" style="padding: 0;margin: 20px;background-color: #3598DB;border-collapse: separate;border-radius: 4px;box-shadow: 0 6px 0 #1e6fa6;">
<tbody style="padding: 0;margin: 0;">
<tr style="padding: 0;margin: 0;">
<td align="center" valign="middle" class="button-content" style="padding: 15px;margin: 0;color: #FFFFFF;font-family: Helvetica;font-size: 18px;font-weight: bold;line-height: 100%;text-align: center;">
<a href="#" target="_blank" style="padding: 0;margin: 0;color: #FFFFFF;display: block;letter-spacing: 1px;text-decoration: none;text-transform: uppercase;">Click Me</a>
</td>
</tr>

Raymond Johnson Web Development Agreement

Between me, Raymond Johnson and you, (Company Name)

Summary:

I’ll always do our best to fulfil your needs and meet your expectations, and it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.

You (your/company name), located at (your address) are hiring me (Raymond Johnson) located at (business addess) for web development for the total price of (hourly rate) per hour as outlined in our previous correspondence.