I'm trying to add
data-uk-sticky attribute to a Joomla module that displays a sidebar menu (to make it sticky).
For that, I created an alternative layout by copying
In the sticky.php file I wrapped the whole content in a div like:
<div data-uk-sticky><ul class="nav menu<?php echo $class_sfx;?>"<?php
In the module admin, I can now select Sticky in the Alternative Layout configuration.
However, when reloading the page I can't find the div I created. Why not?
I also tried copying the whole mod_menu to the template/html folder but the result is the same.