To play the B7 chord, perform a barre by pressing your index finger on the top g-string, E-string, and bottom-A string on the 2nd fret and middle finger on the 3rd fret of the C-string.