Welcome to the forum.
Best thing it to set your camera to Aperture Priority.
What you need to do is use a large aperture (smaller number). The opening in the lens is small for big numbers, and open more for the smaller numbers.
The larger the number for aperture the more things are in focus, forward and behind the point your focusing on (area of sharp focus). Distance from the subject also matters. The closer you are the smaller the area of sharp focus will be for a given aperture setting.
Do a search on aperture and examples. Also look up exposure triangle. Good information to know, and a starting point to learn more skills taking pictures.