Skip to content

Remove Jetpack Social Links

I recently had a theme customer ask how to get rid of the Google plus link on their social menu.

My recent themes use a social menu setup similar to the one found in the TwentyNineteen theme. This involves setting up a WordPress menu, and then adding links to your social networks. The theme then uses CSS to target links based on the url, and replaces the text link with an icon.

nav li.icon a[href*=""]:before {
  content: '\f204';

The idea came from the theme team at, and I’ve been using it for two or three years now.

But this particular theme was made before the newer social menu code. So the social menus were setup with Jetpack Social Links. Except the interface for this no-longer exists.

The code still works, for backwards compatibility, but you can’t disconnect Google+ or the other networks.

The properties are accessed through get_theme_mod, but this is done with filters. They are actually stored in Jetpack Options. The only way I could find to delete them was by using the Jetpack_Options class.



Tips, WordPress

Ben View All

Ben is a lifelong Nintendo fan who also likes to build websites, and develop games. He also buys way too much Lego.

Leave a Reply

Your email address will not be published. Required fields are marked *