Skip to content

Instantly share code, notes, and snippets.

View kimcoleman's full-sized avatar

Kim Coleman kimcoleman

View GitHub Profile
@kimcoleman
kimcoleman / my_memberlite_login_page.php
Created February 17, 2017 12:14
Theme My Login pages layout concept for sites using Memberlite
[row]
[col medium="4" medium_offset="4"]
<div class="pmpro_message pmpro_default">[theme-my-login]</div>
[/col]
[/row]
@kimcoleman
kimcoleman / my_memberlite_login_page_banner_description.php
Created February 17, 2017 12:15
Theme My Login "Banner Description" concept for sites using Memberlite
<h1 class="text-center">Log In</h1>
@kimcoleman
kimcoleman / my_memberlite_bottom_banner_cta.php
Last active February 25, 2017 12:19
A sample concept for the Page Bottom Banner using Memberlite.
/*
Copy and paste this into the "Page Bottom Banner" field in the Edit Page screen.
This recipe requires Memberlite (https://memberlitetheme.com) and
the Memberlite Shortcodes plugin (https://memberlitetheme.com/memberlite-shortcodes/)
*/
<h1>The Bottom Banner: One Last Call-to-action.</h1>
[row]
[col medium="6"]
<p class="text-2x">Capture your potential members before they do anything else. Questions? Call us at [fa icon="phone"] 123-456-7890 or <a href="mailto:info@domain.com">send us an email</a>.</p>
[/col]
@kimcoleman
kimcoleman / my_memberlite_bottom_banner_recent_posts.php
Last active February 25, 2017 12:26
A sample concept showing Recent Posts in the Page Bottom Banner using Memberlite.
/*
Copy and paste this into the "Page Bottom Banner" field in the Edit Page screen.
This recipe requires Memberlite (https://memberlitetheme.com) and
the Memberlite Shortcodes plugin (https://memberlitetheme.com/memberlite-shortcodes/)
See documentation on the memberlite_recent_posts shortcode at
https://memberlitetheme.com/memberlite-shortcodes/recent-posts/
*/
<h2 class="text-center">Recent News and Updates</h2>
[memberlite_recent_posts count="3"]
@kimcoleman
kimcoleman / my_memberlite_bottom_banner_subpagelist.php
Created February 25, 2017 12:26
A sample concept using memberlite_subpagelist and the post_parent override using Memberlite.
/*
Copy and paste this into the "Page Bottom Banner" field in the Edit Page screen.
This recipe requires Memberlite (https://memberlitetheme.com) and
the Memberlite Shortcodes plugin (https://memberlitetheme.com/memberlite-shortcodes/)
Update line 10 with your desired subpagelist post_parent ID OR remove the attribute to get the current page's children.
See documentation at: https://memberlitetheme.com/memberlite-shortcodes/subpagelist/
*/
<h1 class="text-center text-3x">Learn More About Our Program</h1>
[memberlite_subpagelist post_parent="403" layout="4col" thumbnail="medium"]
@kimcoleman
kimcoleman / ssh_command_line_file_backup.txt
Created November 16, 2017 15:59
Back up your WordPress website files via SSH and Command Line
cd ~/public_html
zip -r backup.zip * .htaccess
@kimcoleman
kimcoleman / export_settings_wp_database_backup.txt
Created November 16, 2017 16:05
Recommended export settings for your WordPress MySQL database via phpMyAdmin
* Select All Tables
* Select "SQL" format
* Include "Structure" and the following settings:
** 'Add DROP TABLE / VIEW / PROCEDURE / FUNCTION'
** 'Add IF NOT EXISTS'
** 'Add AUTO_INCREMENT' and
** 'Enclose table and field names with backquotes'
@kimcoleman
kimcoleman / pmpro_frontend-oldschool.css
Created November 22, 2017 14:09
Return the style of labels and form inputs on the Membership Checkout form to pre-1.9.4 layout using Paid Memberships Pro
<style>
@media only screen and (min-width: 1200px) {
#pmpro_form h3 {
display: grid;
grid-template-columns: 2fr 1fr;
}
.pmpro_checkout .pmpro_checkout-fields .pmpro_checkout-field {
clear: left;
}
.pmpro_checkout .pmpro_checkout-fields .pmpro_checkout-field label {
@kimcoleman
kimcoleman / pmpro_checkout_css-earthers.css
Created November 22, 2017 14:11
Stylesheet improvements for the 'earthers' support thread.
#pmpro_form h3 span.pmpro_checkout-h3-msg {
letter-spacing: normal;
font-size: 14px;
}
@media only screen and (min-width: 1200px) {
#pmpro_form h3 {
display: grid;
grid-template-columns: 2fr 1fr;
}
@kimcoleman
kimcoleman / my_pmpro_register_helper_hr_html.php
Created January 4, 2018 12:12
Insert an HTML field containing the <hr /> element for improved layout.
/*
Add a <hr /> element to Membership Checkout
*/
//html field
$fields[] = new PMProRH_Field(
' ',
'html',
array(
'html' => '<hr />',