Vitamin D is a pro-hormone, essential for musculo-skeletal health, normal immune system, and numerous other body functions. Vitamin D deficiency is considered a risk factor in many conditions, and there is growing evidence of its potential role in the severity of COVID-19 outcomes. However, an alarmingly high prevalence of vitamin D deficiency is reported in many regions, and vitamin D supplementation is commonly recommended, particularly during wintertime. To reduce the risk for vitamin D deficiency in the Slovenian population during the COVID-19 pandemic, we conducted mass media intervention with an educational campaign. The objective of this study was to investigate vitamin D supplementation practices in Slovenia before and during the COVID-19 pandemic, and to determine the effects of the educational intervention on supplementation practices. Two data collections were conducted using an online panel with quota sampling for age, sex, and geographical location. A pre-intervention (N=602, April 2020) and post-intervention (N=606) sampling were done during the first and second COVID-19 lockdown, respectively. We also focused on the identification of different factors connected to vitamin D supplementation, with a particular emphasis on vitamin D-related knowledge. Study results showed significant changes in vitamin D supplementation in the population. Penetration of the supplementation increased from 33% in April to 56% in December 2020. The median daily vitamin D intake in supplement users was 25 µg, with about 95% of supplement users taking safe intake levels below 100 µg/daily. Vitamin D-related knowledge (particularly about dietary sources of vitamin D, the health-related impact of vitamin D, and the prevalence of deficiency) was identified as a key independent predictor of vitamin D supplementation. Based on the study findings, we prepared recommendations, which will enable the development of effective awareness campaigns for increasing supplementation of vitamin D.