I hope this could help you
Learn the following
1.) Guitar chords
2.) Function of the chords ( Tension-Suspention-Resolution)
3.) Major scale
4.) Pentatonic & Blues scale 5 position
5.) Arpeggios ( Major & Minor )
6.) Chord inverson
Remember to target and land the notes to a chord tone and add a melody.
Then enjoy guitar solo improvisation.