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
/* | |
Theme Name: Default Theme | |
Theme URI: http://instinct.co.nz | |
Description: Default Theme | |
Version: 3.5 | |
Author: Roy Ho | |
Author URI: http://instinct.co.nz | |
*/ | |
/* |
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 if (current_user_can('manage_options')) { ?> | |
<a href="<?php echo admin_url(); ?>">Admin</a> | |
<?php } else { ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-000000', 'auto'); |
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
UPDATE wp_posts SET post_content = REPLACE(post_content, "YourWebsite.com/wp-content", "YourWebsite.com/wp/wp-content"); |
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
sudo nvram boot-args="iog=0x0" |
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 | |
/** | |
* Prevent new user email notifications | |
* This prevents new user email notifications being sent to users and administrators by commenting out the wp_mail functions. You could rewrite it to change the default registration email. | |
* This should be put in a plugin or your themes functions file. | |
* @link http://wordpress.org/extend/plugins/disable-wp-new-user-notification/ | |
* @author Jono Warren <[email protected]> | |
*/ | |
if ( !function_exists('wp_new_user_notification') ) { | |
function wp_new_user_notification($user_id, $plaintext_pass = '') { |
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 | |
$posts = array(5, 2, 43, 12); | |
// Get the posts | |
$my_loop = new WP_Query(array( | |
'post__in' => $posts, | |
'post_type' => 'any', | |
'posts_per_page' => -1, | |
)); |
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 | |
// Remove SEO menu from Admin bar | |
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); | |
function mytheme_admin_bar_render() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} | |
// Remove ‘page analysis’ and annoying SEO columns | |
add_filter( 'wpseo_use_page_analysis', '__return_false' ); |
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 | |
/** | |
* Prevents generation of 'Hello World' and 'Sample Page'. | |
* @link http://wordpress.stackexchange.com/a/71867/8872 | |
*/ | |
function wp_install_defaults() { | |
return null; | |
} |
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
body { | |
white-space: pre; | |
font-family: Menlo, Monaco, monospace; | |
font-size: 0.8rem; | |
background: #1d1f21; | |
color: #c5c8c6; | |
} | |
.property { |
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
jQuery(document).ready(function($){ | |
// Prevent right click on carousel | |
$('.gallery').on('contextmenu', function(){ | |
return false; | |
}); | |
// Prevent right click on all image elements | |
$('img').on('contextmenu', function(){ | |
return false; |
OlderNewer