• All

    Great theme design, thank you.

    I wish to amend slightly the posts and widgets on content sidebar. I would like them to have borders around, much like on the back-end console when we, for example, adding a new post.
    Is it possible?

    Thank you and best regards,
    Sergey

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi ssolomin,

    You can insert the following code in your style.css:

    aside {
    border: 2px solid #fff;
    padding: 3px;
    margin-left: -5px;
    }

    It will create a simple white border around your posts and widgets in your sidebar.

    Important: Are you using a child-theme? You really should. If so, insert the code in your child-theme’s style.css. If you are not using child-theme and don’t know how, insert the above code at the end of your theme’s style.css for testing purpose only. You can modify the code as you desire. But the code will go away as soon as you update your theme. That’s why you need to use child-theme.

    Hope that helps !!

    Placid

    Thread Starter ssolomin

    (@ssolomin)

    Hi Placid,

    thank you for your reply and suggested code really creates white borders on the left side bar.
    I probably was not very clear with my question, but I’m looking for a border around posts in center and widgets in right side bar.
    Could you please share the same for them.

    Thread Starter ssolomin

    (@ssolomin)

    Sorry, need to correct myself – the code applied to both side bars (just white border was not seen on the white background).

    Still not clear how to draw a border around posts.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add borders around posts and widgets.’ is closed to new replies.