• Resolved infmgt

    (@infmgt)


    Is there a way to vary the styling of a sidebar? I don’t mean the widgets/widgets area but the basic styling of the sidebar itself. I would like to have different styling for different pages. For example, on some pages I want to have this:

    .aside {
    	width: 360px;
    	background-color: #abc; 
    	margin: 20px 20px 20px 20px;
    	float:left; 
    	border: 2px solid;
    	border-radius: 10px;
    	padding: 0 0px 0 0px;
    }

    … and on others, this:

    .aside {
    	width: 360px;
    /*	background-color: #abc; */
    	margin: 20px 20px 20px 20px;
    	float:right;
    /*	border: 2px solid; */
    	border-radius: 10px;
    	padding: 0 0px 0 0px;
    }
    

    (I’ve left in the comment markers so that you can see the difference).

    Is the answer to have more that one sidebar? In which case, how do I do that?

    Any advice or pointers in the right direction would be much appreciated.

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar styling’ is closed to new replies.