• Hi everybody, I would like to indent the categories on my blog, but right now the code in the sidebar in the editor is like this

    <div class=”categories-upper”></div>
    <div class=”categories”>

      <?php wp_list_categories(‘sort_column=name&hierarchical=0&title_li=’); ?>

    </div>
    <div class=”categories-btm”></div>
    <div class=”links”>

      <?php wp_list_bookmarks(‘categorize=0&title_li=’); ?>

    </div>

    and I don’t actually know what and where to write (I do not know nearly anything about php, css, etc.).

    Could you please write me a code that I can use, so that all the child categories are indented, in confront to their parents?

    Thank you for helping!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BlueValentine

    (@bluevalentine)

    Hi please can anybody give me a little advice on this? I can’t really fix it by myself 🙁

    Are you using a theme with a sidebar widget (or that provides widget support)? If so, navigate to “Appearance” > “Widgets” > “Sidebar” > “Categories”. Expand the “Categories” menu and make sure “Show Hierarchy” IS checked. That should automatically add indention/nesting to your categories. If you’re using a pretty current theme, or a custom one with widget support, this is the easiest way to do it.. Sorry it took so long for someone to reply …

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to indent child-categories?’ is closed to new replies.