Hierarchical list of links appears flat.
-
In additional content area, I’m using this [widget id=”multi_col_cats-3″] shortcode to output a hierarchical list of custom taxonomy links. It’s the “Shortcode Widget” plugin that basically outputs a custom written widget. And that custom widget outputs those links using wp_list_categories([“hierarchical” => true]). Everything works fine but below css selector destroys the hierarchy and makes all the link items align to the left.
#responsive-menu-container *
Actually problem comes from margin: 0px; rule of the above selector.
Removing this selector from DevTools fixes the hierarchy but I couldn’t find a way to disable it using Plugin Admin page or some CSS magic. I think I’m fighting with CSS Inheretence here but I’m no CSS guru.<div id="responsive-menu-container"> <li class="categories"></li> </div>
In simple terms, I want ‘li.categories’ not inherit CSS properties from #responsive-menu-container div.
Thank you in advance.
- The topic ‘Hierarchical list of links appears flat.’ is closed to new replies.