Lots of good info here. Here are some tidbits.
a. decide on which emotion you want to create
b. build the solo, starting simple and taking it to a crescendo, too many newbs just pointlessly noodle
c. finish it with an unpredictable riff that is better then every other part of it
d. remember, minor scales make sad, pensive, major scales make happy, strong, dim scales leave uncertainty
e. no need to learn every scale, just the few you use most often
f. get a looper and practice over progressions for hours
Have fun...when it kicks in, it is very satisfying.
Best guitar solo tips and inspiration...Johnny Hiland
Here is just a taste, ignore the title of the vid..just get to know him.
https://www.youtube.com/watch?v=kyndKLMTRsE