The Blog

How to disable Jetpack modules

Recently Jetpack version 1.2.1 added a subscription module that shows two checkboxes at the bottom of the comments form in your blog’s posts and pages. Today i wanted to get rid of that because as many others i already use a plugin for thisin many of my sites, so I tried to find a way to disable this subscription module looking at my WordPress panel comment settings.

Some of the modules do have several options and have a setting page from themselves as the Sharing module, and some are integrated in normal settings pages like the Gravatar hovercard module. With the Subscription module neither of these is the case and for a moment i thought there actually was no way to disable it, so i started googling about it and didn’t find much help at first, but eventually found this fortunate comment with the answer.

You can deactivate specific Jetpack “modules” by clicking the “Learn More” button for that module then the “Deactivate” button that magically appears. Hard to find, we know.


Said and done, as soon as I revealed and then clicked on the elusive Deactivate button, the checkboxes on the comments form went away.

This post was written with the hope to help anyone out there who is also wondering how to disable these modules.

Customize the WordPress 3.1 Admin Bar

If you have been searching on Google you’ll know there’s a lot of blogs explaining how to remove the new Admin Bar that WordPress 3.1 displays on the blog’s frontend. But what if what we want to do is customize it and only remove part of it, or add new links? Well, luckily WordPress provides us with some hooks to edit the Admin Bar in any way we want.

Adding menu & sub-menu items

Let’s say we want to add a new sub menu item for our theme’s custom Options Page. Most premium themes have one of these, and it might be handy to have a link to it…

[php]function my_wp_admin_bar_theme_options() {
global $wp_admin_bar;

$wp_admin_bar->add_menu( array(
‘parent’ => ‘appearance’,
‘id’ => ‘zillaframework’,
‘title’ => ‘Classica Options’,
‘href’ => admin_url(‘themes.php?page=zillaframework’)
) );
add_action( ‘admin_bar_menu’, ‘my_wp_admin_bar_theme_options’, 61 );[/php]

Here we have a simple hook that adds our new “Theme Options” link at the end of the Appearance menu. In the array of options we define the parent menu, an ID for our link, the title that will show in the link and it’s href value.  In the last line we hook our function to the admin_bar_menu action. The last number determines the position of our menu, but since we are already adding it to the Appearance sub-menu, this will not affect its position.

However it’s important not to use one of the numbers WordPress already uses, or our hook will be completely ignored. The magic numbers we can’t use are 10, 20, 30, 40, 50,60, 70 & 80. They correspond to the following default items:

  • Account Menu (wp_admin_bar_my_account_menu): 10
  • My Sites Menu (wp_admin_bar_my_sites_menu): 20
  • Edit Link (wp_admin_bar_edit_menu): 30
  • New Content Menu (wp_admin_bar_new_content_menu): 40
  • Comments Link (wp_admin_bar_comments_menu): 50
  • Appearance Menu (wp_admin_bar_appearance_menu): 60
  • Updates Link (wp_admin_bar_updates_menu): 70
  • Shortlink (wp_admin_bar_shortlink_menu): 80

As you can see only multiples of ten are used by WordPress. This makes it easy for us to add links exactly where we want. For example, if we want to add a link after the content Edit link, we can use a number from 31 to 39, like this:

[php]function my_wp_admin_bar_google() {
global $wp_admin_bar;

$wp_admin_bar->add_menu( array(
‘id’ => ‘google’,
‘title’ => ‘Google’,
‘href’ => ‘’
) );
add_action( ‘admin_bar_menu’, ‘my_wp_admin_bar_google’, 35 );[/php]

Removing default items

Finally if we want to simply remove some of the current links or menus, we will use the remove_action() function (see list above for the names of each item), like this:

[php]function remove_admin_bar_menus() {
remove_action( ‘admin_bar_menu’, ‘wp_admin_bar_my_account_menu’ );
add_action( ‘wp_footer’, ‘remove_admin_bar_menus’ );[/php]

Notice that we are putting the remove_action inside a wp_footer hook so that it is loaded last, and not overwritten by WordPress core stuff.

New Freebie: Fire Text Style

A new freebie is available that includes two text styles designed to make headings look like fire.

Don’t miss it!

Moskis Gems Social Pack #1 Released

My first Social Icon Pack has been released. You can grab it from the Freebies section.

Also, i’m glad to say that i have planned some exciting freebies for the following days, including PSD and CSS3 stuff, so don’t forget to check back regularly or even better, subscribe via RSS.


Today is the day I open my new website.

Until now i had a simpler little website that showed my basic contact information and some social links, but i needed something bigger to show my Portfolio which i will be updating with more work as soon as possible.

But the portfolio is not the only section i needed to add. There’s a lot of stuff i do either to practice or for fun that could be used by others, so to make use of that, and thank my visitors, I have decided to create a section called Freebies which will include many PSD and HTML resources, as well as WordPress plugins.

There’s already a few items in the Portfolio and Freebies sections so be sure to take a look, and if you like them, don’t forget to subscribe.