This tutorial shows you how to display a twitter follow button with counter in your nav menu.
This code works in any WordPress theme however you may need to change the menu classes.
There’s 3 simple steps:
- Filter the wp nav menu
- Add CSS for positioning
The code also enables you to show or hide your twitter handle, followers count and change the size of the button to small, medium or large.
Tested on the Genesis Sample child theme by StudioPress.
Here’s the step by step instructions and code for logged in members: