This snippet will remove ALL the code WordPress adds to the head and foot of your code, such as styles, scripts and other meta tags.
Just add the code below to ...
Friday, December 16th, 2016
This snippet will remove ALL the code WordPress adds to the head and foot of your code, such as styles, scripts and other meta tags.
Just add the code below to ...
Saturday, December 3rd, 2016
Add the snippet below to your themes functions.php file to remove parts of the WordPress admin Header
function remove_admin_bar_links() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo'); // Remove the WordPress logo
...
Sunday, October 2nd, 2016
Add the snippet below to your themes functions.php file remove the help tabs in WordPress Admin.
function remove_help_tabs() {
$screen = get_current_screen(); $screen->remove_help_tabs();
}
add_action('admin_head', 'remove_help_tabs');
Wednesday, June 22nd, 2016
Add the snippet below to your themes functions.php file to change the WordPress admin footer text.
if (! function_exists('dashboard_footer') ){
function dashboard_footer () {
echo 'YOURTEXT';
...
Saturday, May 28th, 2016
This snippet will add featured images to a custom post type or page in WordPress.
Just add the code below to your themes functions.php file replacing “your_custom_post_type” with yours.
add_theme_support('post-thumbnails', array(
...
welcome to the eudemonics blog ...
you can find posts about the things i've been working on, useful code snippets and articles relating to my interests.
comments can be left at the bottom of each post, if you wish to contribute to an article please get in touch.