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 | |
//* Do NOT include the opening php tag | |
//* Delay the adding of new content to the WordPress RSS feed | |
function b3m_delay_publish_rss_feed($where) { | |
global $wpdb; | |
if ( is_feed() ) { |
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
.search-form { | |
position: relative; | |
} | |
.search-form > input { | |
padding-left: 40px; | |
} | |
.search-form input[type="submit"] { | |
background: none !important; |
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 | |
//* Do NOT include the opening php tag | |
function b3m_before_loop () { | |
if( is_category( '1' ) ) { | |
global $query_string; | |
query_posts( wp_parse_args( $query_string, array( 'orderby' => 'title', 'order' => 'ASC' ) ) ); |
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 | |
//* Do NOT include the opening php tag | |
//* Get path to our child theme folder | |
//* Useage: [theme-url] | |
function b3m_theme_uri_shortcode( $attrs = array (), $content = '' ) { | |
$theme_uri = is_child_theme() ? get_stylesheet_directory_uri() : get_template_directory_uri(); | |
return $theme_uri; |
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 | |
/* | |
Plugin Name: oEmbed Gist | |
Plugin URI: http://firegoby.jp/wp/oembed-gist | |
Description: Embed source from gist.github. | |
Author: Takayuki Miyauchi | |
Version: 1.4.0 | |
Author URI: http://firegoby.jp/ | |
*/ |
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 | |
//* Do NOT include the opening php tag | |
//* Remove the link 'SEO' from admin bar. It's placed there by the plugin WordPress SEO by Yoast. | |
add_action( 'wp_before_admin_bar_render', 'wlwp_admin_bar' ); | |
function wlwp_admin_bar(){ | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} |
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 | |
//* Do NOT include the opening php tag | |
//* Alter the Genesis Search for so that we can change the destination page and our querystring parameter. | |
add_filter( 'genesis_search_form', 'b3m_search_form', 10, 4); | |
function b3m_search_form( $form, $search_text, $button_text, $label ) { | |
$onfocus = " onfocus=\"if (this.value == '$search_text') {this.value = '';}\""; | |
$onblur = " onblur=\"if (this.value == '') {this.value = '$search_text';}\""; | |
$form = '<form role="search" method="get" class="searchform search-form" action="' . home_url() . '/search"> |
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 | |
//* Do NOT include the opening php tag | |
//* Remove 'Editor' from 'Appearance' Menu. | |
//* This stops users and hackers from being able to edit theme & plugiin files from within the WordPress dashboard. | |
if ( ! defined( 'DISALLOW_FILE_EDIT' ) ) | |
define( 'DISALLOW_FILE_EDIT', true ); |