Skip to content

Instantly share code, notes, and snippets.

<a class="more" href="#">More Information</a>
//css
.more {
background: #c09d78 url(arrow.png) right no-repeat;
display: block;
position: relative;
padding: 0 50px;
}
@jmariano13
jmariano13 / Lockout
Created September 24, 2013 16:20
Lockout
In PHP myadmin
UPDATE wp_options SET option_value = '' WHERE option_name = 'limit_login_lockouts'
//Example: 1 http://stackoverflow.com/questions/4287357/access-php-variable-in-javascript
<script type="text/javascript">
var php_var = "<?php echo $php_var; ?>";
</script>
//Example: 2 http://stackoverflow.com/questions/2928827/access-php-var-from-external-javascript-file
<?php $color = "Red"; ?>
<script type="text/javascript">var color = "<?= $color ?>";</script>
<script type="text/javascript" src="file.js"></script>
@jmariano13
jmariano13 / Optimizely
Created August 14, 2013 17:20
Optimizely
Inside Functions File:
add_action( 'genesis_meta', 'add_optimizely', 1 );
function add_optimizely(){
?>
<script src="//cdn.optimizely.com/js/264810639.js"></script>
<?php
}
@jmariano13
jmariano13 / wpconfig
Created August 6, 2013 13:10
Revisions
define('WP_POST_REVISIONS',FALSE);
@jmariano13
jmariano13 / Link
Created July 24, 2013 21:59
Metabox
@jmariano13
jmariano13 / Action Hooks
Created July 18, 2013 15:15
Plugin Defaults
<?php add_action ( 'hook_name', 'your_function_name', [priority], [accepted_args] );
@jmariano13
jmariano13 / Thank You
Created June 13, 2013 20:09
Thank You Page
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<h2 style="text-align: center;">Thanks for your support.</h2>
<h4 style="text-align: center;">Thank you for your contribution to Texans for Greg Abbott. Your generosity fuels our efforts to fight for conservative principles and real leadership..</h4>
<h3 style="text-align: center; font-weight: bold; line-height: 32px;">Follow us on <a style="background-image: url(http://w.sharethis.com/images/twitter_32.png);
@jmariano13
jmariano13 / cycle.js
Created May 24, 2013 14:06
CYCLE Plugin
/*!
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2013 M. Alsup
* Version: 3.0.2 (19-APR-2013)
* Dual licensed under the MIT and GPL licenses.
* http://jquery.malsup.com/license.html
* Requires: jQuery v1.7.1 or later
*/
;(function($, undefined) {
<div id="container">
<div id="navi">a</div>
<div id="infoi"><img src="info_icon2.png" height="20" width="32"/>b</div>
</div>
#container {
width: 100px;
height: 100px;
position: relative;
}