• Resolved lesliedare

    (@lesliedare)


    First, please note that I am using a child theme of Twenty Sixteen.

    I have added some styling via the CSS Stylesheet Editor to create different styles for nested lists (and also a couple of other tweaks; the full custom CSS is below for reference).

    However that seems to impact the one drop down menu on my site.

    This page shows how the CSS renders; the menu where the style-type is “circle” is called “Family Lines.”

    Here’s a related question (let me know if I should post as a separate thread) – this list styling is also impacting my category list as shown in the sidebar. I’d really like to indent my lists, but only on pages/posts. Is there a straightforward way to accomplish that?

    Thanks,
    Leslie Dare

    /*List styling*/
    ol li ol li {
    	list-style: lower-alpha;
    	padding: 2px;
    	margin-left: 5px;
    }
    
    ul li ul li {
    	list-style-type: circle;
    	padding: 2px;
    	margin-left: 5px;
    }
    
    function new_excerpt_more( $more ) {
    }
    
    blockquote {
    	border-left: 2px solid #f77300;
    	background-color: #f2f2f2;
    	font-style: normal;
    	font-size: 105%;
    	margin: 30px 0 30px 15px;
    	padding-left: 35px;
    }
    
    /*to get remove white space above and below site title*/
    #masthead {
    	padding-top: 0 !important;
    	padding-bottom: 12px !important;
    }
    
    /*to move left sidebar content to bottom on posts*/
    .post .entry-footer {
    	display: bottom;
    }
    
    .post .entry-content {
    	min-width: 100%;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • paulwpxp

    (@paulwp)

    Change this selector

    ol li ol li { /* properties */ }

    to this

    article ol li ol li { /* properties */ }

    and do the same to the other (ul li ul li).

    Also your CSS code posted above has php function in it, so don’t forget to remove it out, use this online tool to validate your CSS code (click on direct input tab)
    https://jigsaw.w3.org/css-validator/

    Thread Starter lesliedare

    (@lesliedare)

    That works! Thanks so much, and for the validator tool tip.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom CSS for Unordered Lists Impacting Menus’ is closed to new replies.