Skip to content

Instantly share code, notes, and snippets.

View teolopez's full-sized avatar
🤓

Teodoro Lopez teolopez

🤓
View GitHub Profile
@teolopez
teolopez / functions_wplogin.php
Created January 18, 2014 09:57
Change the WP Logo Link to your site and the text in the tooltip.
function myprefix_loginpage_custom_link() {
return get_bloginfo( 'url' );
}
add_filter('login_headerurl','myprefix_loginpage_custom_link');
function myprefix_change_title_on_logo() {
return 'My Tooltip';
}
add_filter('login_headertitle', 'myprefix_change_title_on_logo');
@teolopez
teolopez / gist:8495434
Created January 18, 2014 20:02
adding meta area for user accounts table structure
<table class="form-table">
<tr>
<th scope="row">Title</th>
<td></td>
</tr>
</table>
@teolopez
teolopez / registration-code.php
Created January 18, 2014 20:02
// Register Error if ID code does not match. for functions.php
//----------------------------------------------
// Register Error if ID code does not match.
//----------------------------------------------
function myplugin_check_fields($errors, $sanitized_user_login, $user_email) {
$mystring = $user_email;
$findme = '.edu';
$pos = strpos($mystring, $findme);
@teolopez
teolopez / gist:8495783
Created January 18, 2014 20:26
registration fields - gza grid 02
<div class="control-group">
<label class="control-label" for="inputEmail">LinkedIn URL</label>
<div class="controls">
<input type="text" name="linkedin" id="linkedin" class="input-medium" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Twitter</label>
<div class="controls">
<div class="input-prepend">

Contract Killer

  • Revised date: 02/12/2014

Between us [company name] and you [customer name]

@teolopez
teolopez / list style
Last active August 29, 2015 13:56
victor check this out
$('.bxslider').bxSlider({
auto: true,
autoDirection: 'prev',
});
@teolopez
teolopez / gist:11387553
Created April 29, 2014 00:05
OUHSD – new post type
/* Replace superintendent */
add_action( 'init', 'codex_superintendent_init' );
/**
* Register a superintendent post type.
*
* @link http://codex.wordpress.org/Function_Reference/register_post_type
*/
function codex_superintendent_init() {
$labels = array(
/**
*
* Generate Multiple Pages – Child Pages
*
**/
$boysTeams = array(
'Basketball',
'Baseball',
@teolopez
teolopez / 0_reuse_code.js
Created June 30, 2014 23:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => 'acf_team-rosters',
'title' => 'Team Rosters',
'fields' => array (
array (
'key' => 'field_537e71196bd9b',
'label' => 'Coach Roster',
'name' => '',