Here it is in a nutshell: study the major key chord chart. (Look it up on Google.) Learn to play chord combinations in any particular key all across the fretboard. Learn the pentatonic scale and play it all the time in all keys. Play chord combinations in any key, plus the pentatonic scale.
What do I mean by chord combinations? Chord progressions in any one key. Here is the key of C:I = C, II = Dm, III = Em, iV = F, V = G, VI = Am, VII = B diminished. Go up and down the fretboard playing the pentatonic scale and the same chord progression. Be able to play a C chord everywhere it exists on the fretboard. Be able to do this with every major and minor chord, then learn seventh chords, and from there, increase your vocabulary.
Once you know the pentatonic scale VERY well, be able to turn it into the major diatonic scale (7 notes instead of 5). Then learn to superimpose the pentatonic minor and mixolydian. These scales are the same scale you are playing, just at a different starting point. For the key of C, you start at C. But what if you start at A, which is the fifth note in the scale of C? If you play an A scale over a song that is in the key of C, you are playing Mixolydian.
But don't start doing that sort of thing until you get the pentatonic scale everywhere. Be able to play pentatonic in all keys everywhere on the fretboard. Be able to play chord combinations everywhere on the fretboard. Know what key you are in. Then you can branch out and learn Mixolydian and the pentatonic minor scale and the blues scale. The blues scale is just a pentatonic scale with a flatted third included.