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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
redirectMatch 301 ^(.*)$ http://www.$1 | |
</IfModule> |
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
<script type="application/javascript"> | |
(function ($) { | |
}(jQuery)); | |
</script> |
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 | |
//In functions .php | |
function my_connection_types() { | |
p2p_register_connection_type( array( | |
'name' => 'posts_to_pages', | |
'from' => 'post', | |
'to' => 'page' | |
) ); | |
} | |
add_action( 'p2p_init', 'my_connection_types' ); |
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
add_filter('embed_defaults','themename_embed_defaults'); | |
function themename_embed_defaults($defaults) { | |
$defaults['width']=123; | |
$defaults['height']=123; | |
return $defaults; | |
} |
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
// Activate WP_DEBUG to a file | |
// file: /wp-content/uploads/debug.log | |
define('WP_DEBUG', true); | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors',0); | |
define('SCRIPT_DEBUG', true); |
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
/*Media Queries*/ | |
@media only screen and (min-width: 801px) and (max-width: 980px) { | |
} | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) | |
and (orientation : portrait) { | |
} | |
@media only screen |
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 | |
/** | |
* Registers and loads font awesome | |
* CSS files using a CDN. | |
* | |
* @link http://www.bootstrapcdn.com/#tab_fontawesome | |
* @author FAT Media | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); | |
/** |
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
//Disable Appearance and Plugins for users | |
function remove_menus(){ | |
remove_menu_page( 'themes.php' ); //Appearance | |
remove_menu_page( 'plugins.php' ); //Plugins | |
} | |
add_action( 'admin_menu', 'remove_menus' ); |
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 | |
/** | |
* Gallery Metabox - Only show on 'page' and 'rotator' post types | |
* @author Bill Erickson | |
* @link http://www.wordpress.org/extend/plugins/gallery-metabox | |
* @link http://www.billerickson.net/code/gallery-metabox-custom-post-types | |
* @since 1.0 | |
* | |
* @param array $post_types |