The routing of the green wires up at the 9 pin socket could indeed be a big part of the issue.
Notice that you have the wire going to A9 running in parallel with the wire going to A7? That could induce some hum. In the stock layout, the green wire is a bit shorter and it take a more direct route that's not in parallel with the signal carrying wire going to A7. Having said that, however, noise induced in that matter should be influenced a bit by the volume pot, especially if it's all the way down.
Similarly the wiring going to A4/A5 could be causing similar problems. These are difficult recommendations because even tidying these up, the hum may not change.
Are the power outlets you're using properly earthed? Is the noise present with no source connected?