This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

error ” don’t use adjoing classes” and “Don’t use IDs in selectors”

10 years ago · Last reply by Alex S 10 years ago

Hi
1st of all – after a bit of a learning curve I’ve worked out how to use the CCS Editor – and begining to appreciate it.
Thanks

Now to my problem
I have a page that uses page builder embedded with
SiteOrigin Editor, Site Origin Image and Huge IT Video gallery on the “responsive theme” wordpress 4.4.2

I’m trying to set the background color of the page (the areas between the various widgets)
After playing around with the visual editor I got the CSS code below

Although this works, in the text box of the Custom CSS I get little yellow triangles, hovering over them gives me
“don’t use adjoing classes” and “Don’t use IDs in selectors”

What does this mean ?
Also, did I target the correct things – to change the background color do I really need to target all of the three things ?
Thanks
Yonatan

.pg-228-0 {
background-color: #b3ccff;
}

.grid.col-940 {
background-color: #b3ccff;
}

#wrapper.clearfix {
background-color: #b3ccff;
border-color: #b3ccff;
}

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 10 years, 6 days ago

    Hi Yonlehman,

    Welcome to the magical world of CSS! Don’t let the triangles bring you down – you’re doing fine!

    The yellow triangles are warnings. They pretty much mean; while what you’re doing works, it’s not optimal. I recommend giving this page a read for a bunch of tips on this sort of stuff. Just be aware that, again, they’re warnings, not absolutes. Anyway, here’s the pages for IDs as selectors and
    adjoining classes.

    Good luck!

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread