How do I put a tags around the <li> tags in my wordpress navigation?

I’m new to making wordpress templates and stumbled upon a problem, where you’ll most likely have to edit something within the wordpress defaults.

I use the command wp_list_pages to show all pages. This works fine, but the output looks like this:

Read More
<li class="page_item page-item-20"><a href="#">Page Name</a></li>

I’d like to have the a tag to wrap the <li> tag, so that the whole styled <li> area is clickable and not only the text. Do you have an idea how to make this happen?
Also, other solutions to make the whole <li> area clickable would be welcome as well.

Thanks!

Related posts

Leave a Reply

2 comments