i tried to add custom selector ".sidebar .block" to let the user only select the blocks in the sidebar and no other blocks.
but it doesn't work. the blocks cannot be selected.

if i try only ".block" the blocks can be selected.

is it not possible to enter use selectors? (i tried both in the info file of the theme and also in the backend)

Comments

javi-er’s picture

Hi, I think the problem that you are having is that you don't have ".sidebar" selector defined. Sweaver allows for complex selectors to be defined but first you need to define all the partents in the tree, in this case for ".sidebar .block" to work you also need to have defined ".sidebar"

Bests,
Javier

Anonymous’s picture

Status: Active » Closed (fixed)

javier_ is right !

Closing

vojnar’s picture

Version: 7.x-1.1 » 6.x-1.2

Hi,

How do you define nested selectors?
In admin panel there are only fields for excluded selectors.
There are no "include" and/or "exclusive" selectors field available for defining these properties.
Defining exclusive selector in .info file somehow did not work for me: http://drupal.org/node/1838954

Thanks,
Gabor

vojnar’s picture

In the admin panel, you have to turn on: "Look for selectors in theme info file", and it works as it was designed.

http://drupal.org/node/1838954