Skip to content

Instantly share code, notes, and snippets.

View kimwhite's full-sized avatar

Kim White kimwhite

View GitHub Profile
@andrewlimaza
andrewlimaza / my-own-pmpro-pdf-variable-template.php
Created March 31, 2020 16:48
Add custom variables to PMPro PDF Invoices Templates
<?php
/**
* This example shows you how to create custom variables for your email templates.
* All customers that have purchased an 'All Access' pass get up to 5 custom variables created to help get you started.
* https://yoohooplugins.com/all-access
*/
function my_custom_pmpro_pdf_variable( $data_array, $user, $order_data ) {
$data_array['{{user_name_example}}'] = $user->user_nicename;
return $data_array;
}
@kimcoleman
kimcoleman / pmpro-columns-grid-checkout.css
Last active August 17, 2021 13:34
Custom CSS for Membership Checkout page using CSS Grid: 2 Column Layout for "Account Information" and "Billing Information" sections.
.pmpro-checkout .pmpro_form {
display: -ms-grid;
display: grid;
grid-column-gap: 1em;
-ms-grid-columns: 1 1em 1;
grid-template-columns: 1 1;
grid-template-areas:
"message message"
"pricing pricing"
"user address"
@kimwhite
kimwhite / gist:f947992375143780c364
Created November 6, 2014 22:56
fix social icons with multiple parked domains
Added this to the .htaccess page
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>