Skip to content

Instantly share code, notes, and snippets.

Avatar

Kim Coleman kimcoleman

View GitHub Profile
@kimcoleman
kimcoleman / my_memberlite_login_page.php
Created Feb 17, 2017
Theme My Login pages layout concept for sites using Memberlite
View my_memberlite_login_page.php
[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 Feb 17, 2017
Theme My Login "Banner Description" concept for sites using Memberlite
View my_memberlite_login_page_banner_description.php
<h1 class="text-center">Log In</h1>
@kimcoleman
kimcoleman / my_memberlite_bottom_banner_cta.php
Last active Feb 25, 2017
A sample concept for the Page Bottom Banner using Memberlite.
View my_memberlite_bottom_banner_cta.php
/*
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 Feb 25, 2017
A sample concept showing Recent Posts in the Page Bottom Banner using Memberlite.
View my_memberlite_bottom_banner_recent_posts.php
/*
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 Feb 25, 2017
A sample concept using memberlite_subpagelist and the post_parent override using Memberlite.
View my_memberlite_bottom_banner_subpagelist.php
/*
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 Nov 16, 2017
Back up your WordPress website files via SSH and Command Line
View ssh_command_line_file_backup.txt
cd ~/public_html
zip -r backup.zip * .htaccess
@kimcoleman
kimcoleman / export_settings_wp_database_backup.txt
Created Nov 16, 2017
Recommended export settings for your WordPress MySQL database via phpMyAdmin
View export_settings_wp_database_backup.txt
* 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 Nov 22, 2017
Return the style of labels and form inputs on the Membership Checkout form to pre-1.9.4 layout using Paid Memberships Pro
View pmpro_frontend-oldschool.css
<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 Nov 22, 2017
Stylesheet improvements for the 'earthers' support thread.
View pmpro_checkout_css-earthers.css
#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 Jan 4, 2018
Insert an HTML field containing the <hr /> element for improved layout.
View my_pmpro_register_helper_hr_html.php
/*
Add a <hr /> element to Membership Checkout
*/
//html field
$fields[] = new PMProRH_Field(
' ',
'html',
array(
'html' => '<hr />',