• Resolved grayhat123

    (@grayhat123)


    great theme ..but very dim look ..plz tell how to change side bar colours ..i have tried a lot..as i am not coder it is very difficult to me

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi grayhat. The easiest way to chamge the sidebar colors is to use CSS. If you’re using a child theme you would place the css code in your child theme style.css file. Or, you could install a plugin like Simple Custom CSS and enter the code there.

    The following code will change the sidebar heading and content area colors, and the mobile sidebar toggle icons, to light green. You can change the color attribute to whatever you choose.

    @media only screen {
      .s1,
      .s1 .sidebar-top,
      .s1 .sidebar-content,
      .s1 .sidebar-toggle,
      .s2,
      .s2 .sidebar-top,
      .s2 .sidebar-content,
      .s2 .sidebar-toggle{
        background: #b9ffa5;
        }
    }

    The unused sidebar areas below the sidebar content will still be the default beige (color of the sidebar background image files). You can override that by using the “!important” declaration. To make the remainder of the sidebar areas and the main content area the same color as the default theme site backgroud:

    .main-inner,
    .s1-expand .s1,
    .s2-expand .s2 {
      background: #eaeaea !important;
      }

    Or you can make it all white:

    .main-inner,
    .s1-expand .s1,
    .s2-expand .s2 {
      background: #fff !important;
      }

    The downside of using css to extend the sidebar color the entire length of the content area is that, as the screen shrinks in responsive mode, the content area also shrinks, allowing the main-inner container background color to be displayed below the content area. Fixing this is more complicated because the theme uses image files for the sidebar backgrounds. If you want to make the full length of the sidebar the same color, without affecting other parts of the theme, the best way to do it is to use an image editor and change the color of all the sidebar image files in the theme /img/sidebar folder.

    Thread Starter grayhat123

    (@grayhat123)

    THANKS FOR THE EFFORT SIR..YOU ARE AWESOME …REALLY SOLVED MY PROBLEM,i am happy with your reply..and i also want to keep a banner in header,i reffered this forum but discussion didn’t really helped me.I kept the banner in header.php and also pasted this

    .ads-header-desktop {
        display: block;
        float: right;
        margin-right: 5px;
        margin-top: -95px;
        }

    in custom.css and whatever banner in header.php right below this
    <?php if ( has_nav_menu('header') ): ?>
    as some body already had this problem and they got solved i think so,because they closed that thread.
    whenever i replaced the code changing position in various places it got placed some times below the menubar or sometimes upside of whole website.But not in middle of two menus in right side.
    as shown in this image here

    if you undestand me please reply take your time,i will be waiting for ur reply.
    I will e very thankfull and once again thanks for reply….

    Glad if your sidebar problem is fixed. Your other question is a different subject so please start a new topic and mark this one as resolved. Thank you.

    Thread Starter grayhat123

    (@grayhat123)

    thanks for the support …got solved

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘how to change sidebar colours’ is closed to new replies.