In WordPress, when we call dynamic_sidebar(‘sidebar-id’); to our some template file, then this function generates ul wrappers arround the li items. Is there any way to remove that ul wrappers?
2 comments
Comments are closed.
In WordPress, when we call dynamic_sidebar(‘sidebar-id’); to our some template file, then this function generates ul wrappers arround the li items. Is there any way to remove that ul wrappers?
Comments are closed.
Try this
In the WordPress documentation you can see that its generating the
li
but not theul
, and you need to create it manually.https://codex.wordpress.org/Function_Reference/dynamic_sidebar
Look at the general explanations here:
https://codex.wordpress.org/Sidebars
So it must be coming from your template system, if you can check.