Title: Sidebar Box making
Last modified: August 30, 2016

---

# Sidebar Box making

 *  [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/)
 * Hi there. I am curently a new user of WordPress and CSS.
    On [my site](http://mysedart.comlu.com),
   I have **Rara Clean Theme** installed. On my right side, the sidebar is not integrated
   in a box , as the one in the center,as I would like it to be. Thing is that I
   don’t know where(in what file and where in it), and what to take, specifically
   to edit, copy and paste the code for the sidebar to be in a box.
 * [Example of what I want to do](http://s9.postimg.org/psr9bbvwv/test.jpg)
 * Thank you!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebar-box-making/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-box-making/page/2/?output_format=md)

 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885172)
 * Hey manubmxnsb !
 * Welcome to WordPress then 🙂
    Will do my best here to succeed with your WordPress
   site Ok here we go. Go to your dashboard -> appearance -> editor and open the
   style.css file and paste the following there
 *     ```
       #sidebar {
           background: white;
           padding: 20px;
       }
       ```
   
 * and the result will be [http://imgur.com/jWSwasc](http://imgur.com/jWSwasc)
 * if you want every section alone of the sidebar
 * do the same but paste the following code
 *     ```
       .widget {
           margin: 0 0 1.5em;
           background: white;
           padding: 20px;
       }
       ```
   
 * and the result will be [http://imgur.com/uHgjDuA](http://imgur.com/uHgjDuA)
 * let me know how it goes and I will be happy to provide you more help 🙂
 * Cheers
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885192)
 * Hey codeManiac. Thank you for your help! It works! 😀
    I though i have to put
   it somewhere specific in the code , but it seems to work perfectly. I have another
   thing. how can I make my header, upside bar a static one , like a sticky one.**
   Ex. facebook.com**
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885223)
 * There are many ways but let’s see if the simplest and easiest one will work for
   you :
 * try this plugin : [Sticky Menu](https://wordpress.org/plugins/mystickymenu/)
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885247)
 * It works for another theme of mine(although not as expected because it is not
   constant, it only shows after a bit more scrolling and in other color), but unfortunately
   not for **Rara Clean Theme** ,which I’m using at the moment.
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885279)
 * hmm ok then , see your style.css file?
 * look for this section of code
 *     ```
       #header {
           width: 100%;
           background: #fff;
           box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14);
           position: relative;
       }
       ```
   
 * simply change the relative value with fixed
 * then add some padding to #main by pasting the following :
 * #main {
    padding-top: 90px; }
 * 90px seemed good value to me, ofc you can change it 🙂
 * Cheers !
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885306)
 * Seems to work for the **Rara Clean Theme**, although tested on the other theme(
   ironic) , is not working. [I have let that theme on for you to see](http://mysedart.comlu.com/).
   It’s the [Sparkling Theme](https://colorlib.com/wp/themes/sparkling/). Any idea
   of what might be the problem?
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885310)
 * Every theme has its own classes and IDs , a solution that works on 1 may not 
   work on the other even because of a simple reason which is difference in class
   names.
 * The 2nd theme uses bootstrap framework and in order to get a fixed top header
   open header.php and look for
 * `<nav class="navbar navbar-default" role="navigation">`
 * then add navbar-fixed-top class to make it look as follow
 * `<nav class="navbar navbar-default navbar-fixed-top" role="navigation">`
 * and in your style.css add
 *     ```
       site-content {
           padding-top: 50px;
       }
       ```
   
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885312)
 * Seems to be working! **Thank you! 😀**
    Where did you learn all those stuffs?
   I would like to be able , in time, to modify and edit the code on my own. If 
   I have any further questions, could I ask you ?
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885314)
 * Although, the header becomes white on scrolling if the comment section is bigger,
   as i tested now. How do I fix this?
    [http://mysedart.comlu.com](http://mysedart.comlu.com)
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885320)
 * I do this everyday as work am a freelancer and I learnt that with hard work :-).
   You can learn too , its easy but takes time and practice :).
    The header problem
   can be solved with the following in style.css
 *     ```
       .myfixed {
           background : #363636;
       }
       ```
   
 * and yeah feel free to ask. I would be happy to help you succeed with your online
   presence 🙂
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885328)
 * Oh, okay,well I admire you for that! It would have taken me days to realise what
   I have to do here 😀
    Seems that it is not fixing it, the colour remains the 
   same. [Link Here](http://s29.postimg.org/wjxx8wpif/Untitled_1.jpg)
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885333)
 * ok just add !important which means it becomes like that
 *     ```
       .myfixed {
           background : #363636 !important;
       }
       ```
   
 * and here is the result [http://imgur.com/EIZVWkI](http://imgur.com/EIZVWkI) 🙂
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885340)
 * Seems like it’s not working,even with that ..hmm
 *  [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * (@codemaniac)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885345)
 * Do you still have the sticky menu plugin on the website we r dealing with now?
   if so uninstall it because this 2nd case has a completely different approach 
   from the 1st one of the plugin.
    remove it and see if it works now only with 
   the css code
 *  Thread Starter [manubmxnsb](https://wordpress.org/support/users/manubmxnsb/)
 * (@manubmxnsb)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/#post-6885346)
 * Yep. Without the sticky menu it is working 😀 **Thank you so much! **

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebar-box-making/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-box-making/page/2/?output_format=md)

The topic ‘Sidebar Box making’ is closed to new replies.

## Tags

 * [box](https://wordpress.org/support/topic-tag/box/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 16 replies
 * 2 participants
 * Last reply from: [codeManiac](https://wordpress.org/support/users/codemaniac/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/sidebar-box-making/page/2/#post-6885348)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
