Anyone have tips to help write a solo, in regards to making it go with a song better?
You could always look for the motif of the song, say a short melody, play it on the guitar and then like play it and reiterate it differently and then play whatever feels right. If you want you could also think about the modes and keys and such. Really its dependent on the song in some regards
Check the key you're in. learn the different scales that fit that key, and start improvising. also this is the wrong forum for a question like this.