joli_toc_list_tag

By default, the Table of contents utilizes the <ol> tag.

For some reason, you can switch to <li> tag using this filter. Anything else may break the output.

add_filter('joli_toc_list_tag', function($tag){ 
    return 'li';
});
Was this page helpful?