How to Change Sidebar Background Color in Blogger Templates

Hi guys, writing a tutorial after a long time. Anyway, here is a simple tutorial to change the sidebar background color in new Blogger Template Designer templates. After this tutorial, you can easily change the sidebar background color from Template Designer.

Update: I've updated this tutorial. Now you can change the sidebar background color in every Blogger template. Templates with multiple sidebars can also have different colors for each sidebar.


Steps!


  1. Open the Template section.
  2. Blogger Updated Dashboard
  3. Click the Edit HTML button.
  4. Blogger Edit HTML Button
  5. A new window will open. You'd have to click the Proceed button to start editing.
  6. Blogger Proceed Button
  7. Find the following code:
    /* Variable definitions
    ====================
  8. REPLACE the above code with the following one:
    /* Variable definitions
    ====================
    
    <Group description="Right Sidebar Background" selector="body">
    <Variable name="sidebar.right.top.color" description="Right Top Sidebar Background" type="color" default="#00f" value="#0000ff"/>
    <Variable name="sidebar.right.left.color" description="Right Left Sidebar Background" type="color" default="#ff0" value="#ffff00"/>
    <Variable name="sidebar.right.right.color" description="Right Right Sidebar Background" type="color" default="#f0f" value="#ff00ff"/>
    </Group>
    
    <Group description="Left Sidebar Background" selector="body">
    <Variable name="sidebar.left.top.color" description="Left Top Sidebar Background" type="color" default="#00f" value="#0000ff"/>
    <Variable name="sidebar.left.left.color" description="Left Left Sidebar Background" type="color" default="#ff0" value="#ffff00"/>
    <Variable name="sidebar.left.right.color" description="Left Right Sidebar Background" type="color" default="#f0f" value="#ff00ff"/>
    </Group>
    
    <Group description="Sidebar Column Background" selector="body">
    <Variable name="sidebar.bgr.color" description="Right Sidebar BG Color" type="color" default="#f00" value="#ff0000"/>
    <Variable name="sidebar.bgl.color" description="Left Sidebar BG Color" type="color" default="#f00" value="#ff0000"/>
    </Group>
  9. After that, find ]]></b:skin> and REPLACE it with the following code:
    #sidebar-right-1 { background: $(sidebar.right.top.color); }
    #sidebar-right-2-1 { background: $(sidebar.right.left.color); }
    #sidebar-right-2-2 { background: $(sidebar.right.right.color); }
    .column-right-inner, column-right-outer { background: $(sidebar.bgr.color); }
    .column-left-inner, column-left-outer { background: $(sidebar.bgl.color); }
    #sidebar-left-1 { background: $(sidebar.left.top.color); }
    #sidebar-left-2-1 { background: $(sidebar.left.left.color); }
    #sidebar-left-2-2 { background: $(sidebar.left.right.color); }
    ]]></b:skin>
  10. Click Save template and then Close button.
  11. Blogger Save Template Close Buttons

How to Change the Background Color in Template Designer?


We've finished the coding stuff, now simply click the Customize button to open Blogger Template Designer.
Blogger Customize Button
Then click the Advanced tab. You'll see 3 new options there. First one is Right Sidebar Background. It has 3 further options.


Right Top Sidebar Background: This will change the background color of the top section in the right column.
Right Left Sidebar Background: This will change the background color of the left sidebar in the right column.
Right Right Sidebar Background: This will change the background color of the right sidebar in the right column.


Next option is Left Sidebar Background. It also has 3 further options.


Left Top Sidebar Background: This will change the background color of the top section in the left column.
Left Left Sidebar Background: This will change the background color of the left sidebar in the left column.
Left Right Sidebar Background: This will change the background color of the right sidebar in the left column.


Last option will be Sidebar Column Background. This is the most interesting one because it affects the whole column rather than a single sidebar section. It has 2 further options.


Right Sidebar BG Color: The color in this option will change the background of whole column on the right side.
Left Sidebar BG Color: This option will change the background of left side column.

27 comments:

  1. Hi!

    Thanks for this code, but funnily enough the colours don't seem to show up on blog. I am using Simple as the base template, and after editing the code I am able to see a customization option in my Advanced design editor. Why do think this may be happening?

    Thanks in advance!

    ReplyDelete
  2. @ Rabia Fathima, I don't know exactly, you can send me your template file and I'll have a look at it!

    ReplyDelete
  3. Thanks this was the first one that worked for me!!!

    ReplyDelete
  4. Hello, I followed all the steps. However, when I change the colors on the sidebar, it does not show up on my blog. Here is my blog url:
    tracysbistro.blogspot.com

    ReplyDelete
  5. @ Miss Tracy A., send me your template file.

    levisinside0@gmail.com

    ReplyDelete
  6. Yep - options are now there, but selection isn't showing on blog.

    ReplyDelete
  7. Thank you so much for this its exactly what I've been looking for. I'm also trying to change the background colour of the main body of my blog (the area where my actual posts are), as I have a busy background but would like my posts to be on a plain background so they are easier to read. I imagine the process is similar to this, but I don't know how to do it! Any advice would be so appreciated, thank you.

    ReplyDelete
  8. The colour does not show up on my blog. www.stkhit.blogspot.com Please advice what should i do.

    ReplyDelete
  9. @ Shwe Thiri Khit, what colour do you want to use as background of your sidebar? Send me your template file:

    levisinside0@gmail.com

    ReplyDelete
  10. Hi!
    Thanks for your help. It added a little accent to my blog. I also hope that you can show us how to put a background color to the title of each categories on the side bar:)

    Keep it up!

    ReplyDelete
  11. Trying to use this to change my sidebar background to white. I made the changes but they don't show up on my blog.

    ReplyDelete
  12. Ohhhh, Thank you, thank you, thank you!!!!! I have been searching the web for instructions that would WORK! Yours did on the first try!!

    ReplyDelete
  13. This is amazing! Thank you so much for the help! I have both my sidebars on the same side and was hoping to make them two different colors but with this tutorial it changes them both to the same color. Any tips or thoughts?

    ReplyDelete
  14. http://expeditioncornwall.blogspot.com/
    I am using the simple template and "change sidebar colour" has appeared but the background colour will not change on the blog, Thanks loads if you can help.

    ReplyDelete
  15. Woohoo! it worked
    Thanks a bunch

    ReplyDelete
  16. I've used the same code principle to try to change the sidebar text (as I want it different to the post text). The option showed up in customise area but changes not showing on blog.

    If you don't mind taking a peek at this different application of your code, I would appreciate it.

    http://bohemiantwilight.blogspot.com/

    ReplyDelete
  17. @ Monica, I've tested the tutorial again. It is working fine for me. Please send me your template file, I'll have a look at it.

    levisinside0@gmail.com

    You can download the file from Template section by clicking the Backup/Restore button at top right.

    ReplyDelete
  18. Thank you so much for this tutorial! It was exactly as I was looking for and was able to customize my colors. I wish there was a sidebar border option, but for the moment I am satisfied!

    ReplyDelete
  19. how about change the sidebar background color completely? like bloggersentral.com?

    ReplyDelete
    Replies
    1. Hi there, that would require further editing of the template.

      Delete
  20. Thanks for this post. I tried it and it worked. The only issue is the length of the color changes doesn't extend all the way down my page. any suggestions?

    ReplyDelete
    Replies
    1. Hi Nakisha, what template are you using? What is your blog address? Complete background change would require additional coding.

      Delete

LinkWithin

Related Posts Plugin for WordPress, Blogger...