No, you do not need a visa to Slovenia if:
- Your country is part of the EU/EEA countries or any Schengen country.
- Your country has a visa-free agreement with Schengen.
If you come from a country that does not have a visa-free agreement with Schengen, you must apply for a Slovenian visa.