- Remove obsolete content, e.g. Hello World
- Remove obsolete plugins, e.g. Hello Dolly
- Replace all placeholder texts, e.g. Lorem Ipsum
- Replace all placeholder images, e.g. placeholder.png
- Find and remove all broken links, e.g. with Broken Link Checker
- Create 404 page
- Create contact page
- Create legal pages, e.g. Terms and conditions and Privacy Policy
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 | |
/* | |
* Use this funtion to delete the custom post type registered by the plugin "Essential Grid" | |
* Alternative method to the one proposed by plugin authors: | |
* https://www.themepunch.com/faq/hide-ess-grid-posts-custom-post-type-from-wp-main-menu/ | |
* | |
* Usage for other CPT: Replace 'essential_grid' with the slug of the custom post type | |
* | |
* Sources: | |
* https://gist.github.com/johnkolbert/769160 |
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 | |
/** | |
* thim functions and definitions | |
* | |
* @package thim | |
*/ | |
define( 'THIM_DIR', trailingslashit( get_template_directory() ) ); | |
define( 'THIM_URI', trailingslashit( get_template_directory_uri() ) ); | |
define( 'THIM_THEME_VERSION', '3.4.3' ); |
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 | |
add_filter('wp_list_categories', 'esc_wp_rel_nofollow'); | |
add_filter('wp_tag_cloud', 'esc_wp_rel_nofollow'); | |
function esc_wp_rel_nofollow($output) | |
{ | |
if (is_single() || is_category() || is_tag()) | |
return stripslashes(wp_rel_nofollow($output)); | |
return $output; |
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 | |
/** | |
* Enqueue 404 Script | |
* | |
*/ | |
function be_404_script() { | |
if( is_404() ) | |
wp_enqueue_script( 'be-404', get_stylesheet_directory_uri() . '/js/404.js', array( 'jquery' ), '1.0', 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
################# performance snippets ########################################### | |
/** | |
* decrease jpeg quality to 80 | |
*/ | |
add_filter( 'jpeg_quality', create_function( '', 'return 80;' ) ); | |
/** | |
* Disable the emoji's | |
*/ |
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 | |
/** | |
* Add rel=nofollow to wp_list_categories | |
* @link http://www.billerickson.net/adding-nofollow-to-category-links/ | |
* @author Bill Erickson | |
*/ | |
function add_nofollow( $text ) { | |
$text = stripslashes($text); | |
$text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text); |
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
################# SEO Aanpassingen ########################################### | |
# https://gist.github.com/Auke1810/9939b52131bdb2af819143798aba60f2 | |
############################################################################## | |
/** | |
* add_noindex_tags | |
* meta robots tag vullen met de juiste instelling per pagina type | |
* Gepagineerde pagina’s (zonder parameters) moeten index, follow zijn. | |
* Gepagineerde pagina’s met parameters mogen een noindex, nofollow | |
*/ |
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 ( ! defined( 'ABSPATH' ) ) exit; | |
/*----------------------------------------------------------------------------------- | |
Title: Child theme functions.php | |
Description: Functies/Action/filter/hooks used for Wordpress childtheme | |
Author: Auke Jongbloed | |
Author Uri: www.wordpressassist.nl | |
Version: 1.4.0 | |
Tags: Wordpress, wordpressassist, functions.php |