[Support request] Change Widget Color in Sidebar

Home Forums Support [Support request] Change Widget Color in Sidebar

Home Forums Support Change Widget Color in Sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #794683
    Sonja

    Hello,

    how to change the color of the sidebar widgets in marketer?
    I want, that the sidebar widgets have different colors. And if the background have a darker color, also the color of the text should be white.

    #794833
    Leo
    Staff
    Customer Support

    Hi there,

    The original Marketer template is using this CSS to color the first sidebar widget:

    .sidebar .widget:first-child {
        background-color: #e86000;
        color: #fff;
    }

    Are you wanting each sidebar widget to be different?

    Can you link me to your site in question?

    #794856
    Sonja

    Yes, like i said, i want each sidebar widget to be different. I try to design this site before launch and it is protected, so i can not link to it.

    Would be nice, if there is a documentation for each site in the library. Since Marketer Site have a colored sidebar widget, i can imagine, that some other users have this question also.

    #794974
    Leo
    Staff
    Customer Support

    So you can basically use the CSS above then just keep adding rules with the nth-child selector:
    https://www.w3schools.com/cssref/sel_nth-child.asp

    #795252
    Sonja

    Thanks Leo. Can you please give an example, how this code looks like for some more widgets in the sidebar?

    #795344
    David
    Staff
    Customer Support

    Hi there,

    so this would target the second widget:

    .sidebar .widget:nth-child(2) {
        background-color: #e86000;
        color: #fff;
    }
    #795708
    Sonja

    Thanks David, now i get it.

    #795711
    David
    Staff
    Customer Support

    Glad we could be of help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.