Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Sorry to have taken a while to respond, but I’ve not had been around much over the last couple of months … normal service is now resumed (hopefully)!

    Because the widget and list mode use the wp_list_pages function built into WordPress (see https://codex.www.ads-software.com/Function_Reference/wp_list_pages), it would not easily be possible to make the list work as you describe. (It could be done, but would involve a lot of work in writing and testing a new walker function … there is also the question of how far to take it … what happens if someone specifies a depth of 2,3 or 7!)

    There is, however, a simple solution via CSS.

    For example, you can specify the styling for top-level list items using:

    ul.ccchildpages_list li {
        font-size: 14pt;
        font-weight: bold;
    }

    .. and the styling for sub-items in the list using:

    ul.ccchildpages_list li li {
        font-size: 10pt;
        font-weight: normal;
    }

    … for further depths, you could add more:

    ul.ccchildpages_list li li {
        font-size: 8pt;
        color: #000066;
    }

    I hope that this is of some help.

    [ Signature moderated ]

    Thread Starter NatCornAdmin

    (@natcornadmin)

    Thank you for your reply. I’ll try the solution you suggest.

    Excellent support!

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different css for each "depth"?’ is closed to new replies.