This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Somewhere in your .bashrc put this | |
# Sets command line prompt PS1 | |
if [ -f ~/.ps1 ]; then | |
. ~/.ps1 | |
fi | |
Then the .ps1 file looks like this | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Read more link | |
add_filter('excerpt_more', 'get_read_more_link'); | |
add_filter('the_content_more_link', 'get_read_more_link'); | |
function get_read_more_link() { | |
return ' ...<br><a href="' . get_permalink() . '">Continue Reading →</a>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.classname { | |
display: inline-block; | |
zoom: 1; | |
*display: inline; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* requires VMERGE Google Script to be installed */ | |
/* Insert into formula bar where you want process to begin */ | |
=sort( | |
vmerge( | |
importrange( "sheet_key_from_url" ; "sheet_tab_name!A2:E2000" ); | |
importrange( "sheet_key_from_url" ; "sheet_tab_name!A2:E2000" ); | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="email-signup"> | |
<h4>Receive our email updates</h4> | |
<form id="command" action="http://visitor.r20.constantcontact.com/manage/optin/ea?v=[GRAB_FROM_SIGNUP_PAGE_PROVIDED_BY_CONSTANT_CONTACT" method="post"> | |
<input type="hidden" name="ref" value="http://[GRAB_FROM_SIGNUP_PAGE_PROVIDED_BY_CONSTANT_CONTACT].com/"/> | |
<div class="row"> | |
<input type="email" value="Email Address..." onclick="if(this.value=='Email Address...'){this.value=''}" onblur="if(this.value==''){this.value='Email Address...'}" id="emailAddr" name="emailAddr" class="email-input"> | |
</div> | |
<div class="row"> | |
<div class="privacy"> | |
<p>Privacy Guaranteed.<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add this code to functions.php - ignore opening php tag and this comment. | |
//* Clear slider caches on new post save - replace num with slider id | |
function rs_clear_cache() { | |
delete_transient( 'new-royalslider-posts-1' ); | |
delete_transient( 'new-royalslider-posts-2' ); | |
delete_transient( 'new-royalslider-posts-3' ); | |
delete_transient( 'new-royalslider-posts-4' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ALTER TABLE [tablename] AUTO_INCREMENT = [number] | |
# for royalslider specifically: | |
ALTER TABLE wp_new_royalsliders AUTO_INCREMENT = [number] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /opt/bitnami/ctlscript.sh restart apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Originally found: http://www.nikolakis.net/2011/07/change-the-height-of-all-list-items-to-float-properly-with-jquery/ | |
/* example HTML | |
<ul class="list"> | |
<li>some information</li> | |
<li>some more information</li> | |
<li>even more information</li> | |
</ul> | |
*/ |