All good advice so far, to which I'd add:
De-humming guitar (or anything else) is often best achieved by combining several tweaks in moderation rather than a single, powerful one. Broad-band hum is harder to get rid of than a mains-only one, and induced noise caused by a PC or lighting dimmer can be particularly difficult to counter in the mix. It's generally better and easier to tackle the noise at the source than remove it later. Often simply moving the guitar somewhere else in the room, or even the guitarist facing a different way can lower the noise floor. As can a change of guitar lead (and the shorter the better). And make sure the guitar's string earth is working properly.
However, once the noise is tracked it has to be minimised.
So:
High-pass with a steep slope at around 85Hz.
Watch for noise at multiples of the mains frequency, particularly the first couple of octave harmonics around 100/120 and 200/240Hz depending on your local mains AC frequency. Reduce the noise with narrow band eq as far as possible without the eq wrecking the overall sound.
Careful, gentle use of a post eq gate/expander can work wonders.
Consider lowering the volume of the track until the hum isn't objectionable then build the rest of the mix around that. With any luck once the entire mix is then brought up to final master levels any residual hum on the guitar track won't be noticeable.
If all else fails, if the problem is mostly noise in the gaps between guitar notes, especially if th guitar was recorded with no or minimal reverb it is possible to go through the audio, chop it up so the noisy gaps between notes are isolated then reduce the noise-only clips to silence with a bit of a fade-in and out, if necessary gently shortening reverb tails as needed. It's a slow, painstaking job though.