Hi - I'm new to this forum and also had the issue with the Samsung Galaxy A5 volume buttons controlling media and not Ringtone.
Here's the answer I found:
Press one of the volume buttons
Top right there is a drop down menu
tap drop down menu and you will find 4 options
Ringtone
Media...