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
/* Remove URL Field From GeneratePress Comments Section */ | |
add_action( 'after_setup_theme', 'gp_add_comment_url_filter' ); | |
function gp_add_comment_url_filter() { | |
add_filter( 'comment_form_default_fields', 'gp_disable_comment_url', 20 ); | |
} | |
function gp_disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} |
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
/* Redirect All 404 Pages to Homepage in WordPress by DigitalKube.com */ | |
<?php | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: ".get_bloginfo('url')); | |
exit(); | |
?> |
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
//*** Auto Ads on Single Posts ***// | |
add_action( 'wp_head', 'digitalkube_add_tracking_code' ); | |
function digitalkube_add_tracking_code() { | |
if (is_single()) { | |
?> | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({ | |
google_ad_client: "ca-pub-xxxxxxxxxxxxxxx", | |
enable_page_level_ads: 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
User-agent: * | |
Disallow: /cgi-bin/ | |
Disallow: /wp-admin/ | |
Disallow: /wp-content/ | |
Disallow: /wp-includes/ | |
Disallow: /archives/ | |
Disallow: /comments/feed/ | |
Disallow: /trackback/ | |
Disallow: /index.php | |
Disallow: /xmlrpc.php |
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
/* Disabling Auto-Link in WordPress Comments */ | |
remove_filter( 'comment_text', 'make_clickable', 9 ); |
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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/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
net stop wuauserv | |
CD %Windir% | |
CD SoftwareDistribution | |
DEL /F /S /Q Download | |
net start wuauserv |
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
/** Previous and Next Links **/ | |
add_action('genesis_after_comment_form', 'custom_post_nav'); | |
function custom_post_nav(){?> | |
<div id="next-prev"> | |
<?php previous_post_link('<strong>Previous Article: %link</strong>') ?><br /> | |
<?php next_post_link('<strong>Next Article: %link</strong>') ?> | |
</div> | |
<?php | |
} |