Skip to content

Instantly share code, notes, and snippets.

View bhubbard's full-sized avatar
:octocat:
Hello

Brandon Hubbard bhubbard

:octocat:
Hello
View GitHub Profile
################################################################################
// Custom Login Page Styles
################################################################################
// Custom Login CSS
function imfza_custom_login() {
wp_register_style( 'custom-login', get_template_directory_uri() . '/assets/css/custom-login.css', true, 'all' );
wp_enqueue_style( 'custom-login' );
remove_filter( 'wp_admin_css','wp_admin_css' );
}
<!-- Add these tags to the HEAD section of your page. -->
<link href="http://coderwall.com/stylesheets/jquery.coderwall.css" media="all" rel="stylesheet" type="text/css">
<script src="http://coderwall.com/javascripts/jquery.coderwall.js"></script>
<!-- You also need to place a container where you'd like the Coderwall badges to render. -->
<section class="coderwall" data-coderwall-username="(your username)" data-coderwall-orientation="(vertical or horizontal)"></section>
User-agent: *
# Disallow
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
<?php
// Share This Javascript
if (!is_single()) {
wp_register_script('sharethis', 'http://w.sharethis.com/button/buttons.js', 'jquery', null , true);
wp_register_script('sharethis-config', get_template_directory_uri() . '/assets/js/sharethis.min.js', array('jquery', 'sharethis'), null , true);
wp_enqueue_script('sharethis');
wp_enqueue_script('sharethis-config');
}
@bhubbard
bhubbard / hide-rewebapps.php
Last active December 14, 2015 12:08
Hide ReWebApp Custom Post Types
<?php
################################################################################
// Hide ReWebApp Custom Post Types
################################################################################
function remove_rewebapp_menu_links() {
// Uncomment any post type you wish to hide
// remove_menu_page( 'edit.php?post_type=properties' );
// remove_menu_page( 'edit.php?post_type=neighborhoods' );
// remove_menu_page( 'edit.php?post_type=agents' );
@bhubbard
bhubbard / idxbrokerplatinum-menulinks.php
Created April 9, 2013 01:31
Add IDX Broker Links to Wordpress Admin Menu
@bhubbard
bhubbard / tpl-idxbrokerwrapper.php
Last active September 6, 2017 17:54
A Wordpress template file for idxbroker dynamic wrapper.
<?php
/**
* Template Name: IDX Wrapper
*
*/
// Disable Admin Bar for this template Page
add_filter( 'show_admin_bar', '__return_false' );
wp_dequeue_style( 'admin-bar' );
wp_dequeue_script( 'admin-bar' );
function idxbroker_template_cleanup {
// Include for Active Plugin Check
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// Remove Wordpress SEO Features for IDX Wrapper
if (is_plugin_active('wordpress-seo/wp-seo.php')) {
add_filter( 'wpseo_next_rel_link', '__return_false' ); // Disable Rel Next Link
add_filter( 'wpseo_canonical', '__return_false' ); // Disable Canonical Link
<?php
/* Register our IE specific stylesheets. */
wp_register_style( 'prefix-ie7-only', get_template_directory_uri() . '/css/ie7.css' );
wp_register_style( 'prefix-ie8-only', get_template_directory_uri() . '/css/ie8.css' );
wp_register_style( 'prefix-ie9-only', get_template_directory_uri() . '/css/ie.css' );
/* Use the global wp_styles object to add our conditional statements due to the lack
* of conditional support in wp_register_style
*/