Skip to content

Instantly share code, notes, and snippets.

@omurphy27
omurphy27 / Gravity Forms Column UL breakpoint - break the ul in two.html
Last active August 29, 2015 14:01
Gravity Forms Column UL breakpoint - break the ul in two.html
<!-- Gravity Forms Column Breakpoint, for breaking the ul and creating a second one in the middle of the form -->
</li>
</ul>
<ul class="gform_fields top_label description_below">
@omurphy27
omurphy27 / CSS Calc combine percentage width with pixels .css
Created May 6, 2014 18:46
CSS Calc combine percentage width with pixels .css
/* CSS Calc combine percentage width with pixels
http://stackoverflow.com/questions/11117216/css-width-calc100-100px-alternative-using-jquery
http://css-tricks.com/a-couple-of-use-cases-for-calc/
*/
.interior .faq h2:hover:before {
width: calc(100% + -7px);
}
@omurphy27
omurphy27 / create wordpress wp admin account through ftp - reset password.php
Created May 15, 2014 19:15
create wordpress wp admin account through ftp - reset password.php
// create Wordpress admin account through FTP
//http://forrst.com/posts/Create_New_Admin_Account_in_WordPress_via_FTP-NOF
function add_admin_acct(){
$login = 'myacct1';
$passw = 'mypass1';
$email = 'myacct1@mydomain.com';
@omurphy27
omurphy27 / PHP truncate string - cut string after certain length - output shorter string.php
Created May 21, 2014 17:55
PHP truncate string - cut string after certain length - output shorter string.php
<?php
// http://stackoverflow.com/questions/3161816/php-cut-a-string-after-x-characters
function truncate_string($string,$length=70,$append="...") {
$string = trim($string);
if(strlen($string) > $length) {
$string = wordwrap($string, $length);
$string = explode("\n",$string);
$string = array_shift($string) . $append;
@omurphy27
omurphy27 / php bcrypt password encryption library hash.php
Created May 31, 2014 23:47
php bcrypt password encryption library hash.php
<?php
// http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php
require_once 'lib/password.php';
$password = "12345";
$hash = password_hash($password, PASSWORD_BCRYPT);
@omurphy27
omurphy27 / Wordpress functions file yoast WP seo score title - remove it.php
Created June 11, 2014 18:01
Wordpress functions file yoast WP seo score title - remove it.php
// remove Yoast wp seo score title that's shown on the WP admin edit pages
add_action('admin_head', 'remove_wp_seo_score_title');
function remove_wp_seo_score_title() {
echo '<style>
.misc-pub-section .wpseo-score-title {
display: none;
}
</style>';
}
@omurphy27
omurphy27 / Custom OL ordered list CSS with number counter.css
Created October 28, 2014 18:34
Custom OL ordered list CSS with number counter.css
/*http://css-tricks.com/numbering-in-style/*/
.interior ol {
counter-reset: my-badass-counter;
list-style: none;
}
.interior ol li {
position: relative;
padding: 0 0 0 10px;
@omurphy27
omurphy27 / Shadowbox effect using Bootstrap Modal HTML Jquery CSS
Created November 13, 2014 01:42
Shadowbox effect using Bootstrap Modal HTML Jquery CSS
// The HTML Markup
<div class="container">
<div class="row">
<div class="col-sm-4 text-center">
<a href="images/space.jpg" data-toggle="modal" data-target=".testing">
<img src="images/space-resized.jpg" alt="">
</a>
</div>
<div class="col-sm-4 text-center">
@omurphy27
omurphy27 / Gravity Forms validation errors styling CSS.css
Created November 20, 2014 00:01
Gravity Forms validation errors styling CSS.css
// Gravity Forms validation errors styling CSS
.validation_message {
font: 12px/1.5em 'Raleway', Arial, sans-serif;
color: #E70F20;
}
.validation_error,
.gform_confirmation_message {
text-align: center;
@omurphy27
omurphy27 / Horizontal line on each side of heading with no background color or extra markup CSS HTML
Created December 11, 2014 02:29
Horizontal line on each side of heading with no background color or extra markup CSS HTML
// lines on other side of a heading
// without using extra markup or a background color
// the css
h1 {
overflow: hidden;
text-align: center;
}
h1:before,