Why don't you use the already present variable to add the attribute to the current page you are on?But your code should work already since it's in the elseif block where current page variable is present.
Code:
<!-- ELSEIF pagination.S_IS_CURRENT --><li class="active"><span {% if pagination.S_IS_CURRENT %} aria-current="page"{% endif %}>{pagination.PAGE_NUMBER}</span></li>
Statistics: Posted by Anișor — Sun Apr 13, 2025 6:03 am