So if you put the lens into manual, rotate the ring to the infinity mark then the whole shot will be in focus? Surely the chosen aperture affects this too?
Yes... sort of... a bit like hyperfocal... but easier...
With hyperfocal focusing you set your camera to focus at a specific distance and set an appropriate aperture to ensure that everything is in acceptable focus. Nothing except what is at the distance the focus is set to, and a bit before and a bit after, is actually in focus but it's all in enough focus to trick you into thinking that it's in focus at what someone who decided the numbers you've used thinks is a normal print size and viewing distance.
To do this you need to memorise hyperfocal tables or take them with you but there is a simpler way of doing things...
As an alternative to hyperfocal focusing you can set your lens to focus at infinity and set an appropriate aperture based upon the zoom length of the lens and the size of anything you want to capture in acceptable focus / detail...
Zoom length divided by aperture = detail in mm.
For example... 50mm lens at f10 will clearly resolve a 5mm object from near to far. This is a much simpler system than hyperfocal focusing as you don't have to memorise hyperfocal tables or take them with you. All you need to know is the zoom length of your lens and then you can take a guess at the detail you want capture and from that set the aperture. Simple (ish.)
Here's a write up that tells it a little clearer than I can...
http://www.northlight-images.co.uk/article_pages/hyperfocal_distance.html
http://www.trenholm.org/hmmerk/DOFR.html
"Now it's important here to understand that the "size of the lens" is the diameter of the lens diaphragm at it stopped-down or working position. If we are shooting at f/8 with a 50 mm lens, that diameter is 50 divided by 8 millimeters: 6.25 mm, or about one-quarter of an inch. For a 300 mm lens at f/5.6, the diameter would be 300 divided by 5.6, or 53.6 mm-about two inches.
What this rule does, is give the photographer direct control of the problem. The photographer can decide what must be resolved, and what need not. Or, he can use the rule to ensure something will be intentionally blurred out and unrecognizable. As the spot size increases relative to the size of the object being photographed, the image of that object grows in size and fades in contrast."
I've been using this simple system for years and if you try this you'll see that it works.