Skip to main content

Timeline for Add class to <ul> on sidebar widget

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Jul 12, 2019 at 9:10 vote accept user8463989
Jul 12, 2019 at 8:32 comment added LebCit Take a look at the EDIT part :) Don't forget to accept the answer when it works for you :)
Jul 12, 2019 at 8:31 history edited LebCit CC BY-SA 4.0
added 256 characters in body
Jul 12, 2019 at 8:25 comment added user8463989 yeah, the <h6> and <ul><li> should not sit inside another div or container etc. All I want to do is add a class to the <ul> tag which by default has no class at all it would seem.
Jul 12, 2019 at 8:21 comment added LebCit So you only want to target the ul of recent posts ?
Jul 12, 2019 at 8:20 comment added user8463989 Want it to look like this: <h6>Latest news</h6><ul class="submenu"> <li> <a href="http://localhost:8888/a-third-post/">A Third Post</a> </li> <li> <a href="http://localhost:8888/another-post/">Another Post</a> </li> <li> <a href="http://localhost:8888/news-article-title/">News Article Title</a> </li> </ul>
Jul 12, 2019 at 8:17 comment added LebCit The <ul class="submenu"> is now wrapping the sidebar, this is what you asked for. Isn't it ? Remaining modifications are just CSS...
Jul 12, 2019 at 8:12 comment added user8463989 Thanks, that almost works. But it is added the <ul> above the <h3> and making things look weird
Jul 12, 2019 at 8:09 history answered LebCit CC BY-SA 4.0