UIkit components in function or in template ?

Hi Thierry, I just saw the example home file you wrote for Caroline and I wondered: should uikit component enqueuing rather go into the template file or should I put them all together in the functions file ? Until now I kept them all together in functions. What would be the benefit from putting them into the templates ? Thanks in advance Lore

Hi Lore,

If you enqueue UIkit components in your child theme functions.php it will load on all the pages (unless you have conditional statements) while if you enqueue them in the template, they will only load when that specific template file is used.

Have fun,

Write a reply

Login or register to write a reply, it's free!