WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Please add classes to li and ul by default

[Resolved] Please add classes to li and ul by default

  • killtheliterate
    Member

    @killtheliterate

    This calendar plugin almost fits the bill, though styling it is rather cumbersome. Only because the extremely nested li and ul elements do not have classes.

    How would I go about quickly and easily classing those elements in the upcoming events list? I’d like to avoid jQuery-ing those, etc… Is there something easily editable in the plugin itself, where I can add classes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • /classes/class-shortcodes.php contains all the functionality that actually “displays” the calendars. You could add some classes there.

    If you want to share your work, we can try to merge it into the next release.

    Lew

    killtheliterate
    Member

    @killtheliterate

    Perfect!

    All I’ll really be doing is classing the nested elements, so I can grab ’em with selectors. If it’s worth sharing, I’ll pass it on to you.

    CarolineElisa
    Participant

    @carolineelisa

    Yes please! I’d like to know exactly how to do this, as I’m afraid my php skills are not so hot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Please add classes to li and ul by default’ is closed to new replies.