Skip to content

Instantly share code, notes, and snippets.

@skipshean
skipshean / stickyBottom
Created July 6, 2015 20:35
Stick HTML div to bottom
.stickyBottom{
position: fixed;
bottom: 0px;
z-index: 1;
}
@skipshean
skipshean / gist:910d6fa0a3e202568bd5
Created July 12, 2015 17:36
Template-Tags from bootstrapwp font awesome section
if ( ! function_exists( 'bswp_posts_navigation' ) ) :
/**
* Display navigation to next/previous set of posts when applicable.
*
* @todo Remove this function when WordPress 4.3 is released.
*/
function bswp_posts_navigation() {
// Don't print empty markup if there's only one page.
if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
return;
<form action="http://www.networkcycle.com/leads/addlead" name="leadfrm" id="leadfrm-1col" class="form-wrapper" method="post">
<input type="hidden" value="[hash code1]" name="brand_id">
<input type="hidden" value="[hash code 2]" name="site_id">
<input type="hidden" value="[hash code 3]" name="verify_string">
<input type="hidden" id="redirect" value="thank-you-page/" name="redirect">
<div class="1colform-content">
<fieldset id="user-details-1col">
<label for="firstName-l">First Name*:</label>
<input type="text" value="" maxlength="200" id="firstName" name="firstName" />
@skipshean
skipshean / infusionsoft-email-button.html
Last active November 25, 2015 19:32
Infusionsoft email buttons
<table align="center" border="0" cellspacing="0" cellpadding="20">
<tr>
<td>
<div>
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="#" style="height:36px;v-text-anchor:middle;width:250px;" arcsize="5%" strokecolor="#689D00" fillcolor="#689D00">
<w:anchorlock/>
<center style="color:#ffffff;font-family:Helvetica, Arial,sans-serif;font-size:16px;">Save Your Seat Now &rarr;</center>
</v:roundrect>
<![endif]-->
@skipshean
skipshean / easirent.css
Created January 29, 2016 20:58
Example easirent CSS
<!-- the actual drop down styling -->
select[multiple], select[size]{
margin: 3px; <!-- space around the individual fields -->
background: transparent;
padding: 5px 35px 5px 5px; <!-- space inside of each field to the text -->
font-size: 16px;
border: 1px solid #ccc; <!-- the light gray line around each field -->
<!-- these clear the default styling of the drop down menus and make it something you can style -->
-webkit-appearance: none;
<!-- parse email variable from url, load in header -->
<script>
function GetUrlValue(VarSearch) {
var SearchString = window.location.search.substring(1);
var VariableArray = SearchString.split('&');
for (var i = 0; i < VariableArray.length; i++) {
var KeyValuePair = VariableArray[i].split('=');
if (KeyValuePair[0] == VarSearch) {
return KeyValuePair[1];
}
@skipshean
skipshean / fblead-click
Created June 19, 2016 16:42
onClick script to fire facebook ad lead when not going to a thank you page next
<script>
$(function () {
$('[href="#submit-form"]').click(function (ev) {
fbq('track','Lead');
});
});
</script>
@skipshean
skipshean / Suppress CF Affiliate badge
Created September 8, 2016 00:35
don't display the clickfunnels affiliate badge on page - overrides the drop down menu that doesn't work
.nodoBadge {
display: none !important;
}
@skipshean
skipshean / heartbeat-limit
Last active March 12, 2022 07:01
Limit or disable wordpress heartbeat to help speed up admin screens. Please in functions.php file.
// Limit or restrict WordPress heartbeat to speed up wp-admin when many browser tabs are open or traffic is high
// Taken from http://wordpress.stackexchange.com/questions/166727/how-can-i-speed-up-my-wp-admin-section
function optimize_heartbeat_settings( $settings ) {
$settings['autostart'] = false;
$settings['interval'] = 60;
return $settings;
}
add_filter( 'heartbeat_settings', 'optimize_heartbeat_settings' );
@skipshean
skipshean / wp-config-optimizations
Last active January 6, 2020 17:55
WordPress config optimizations, place in wp-config.php file for optimal performance
// other general wordpress optimizations, place in wp-config.php file before "That's all, stop editing!" line.
define('WP_DEBUG', false);
define('WP_POST_REVISIONS', 5);
define('AUTOSAVE_INTERVAL', 600);
define( 'EMPTY_TRASH_DAYS', 3 );
define('WP_MEMORY_LIMIT','96M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );
// optional, remove this comment and the // below if you want to limit external requests in admin screens