XF 2.2 Data logged in doesn't work in this case

JoyFreak

Well-known member
Code:
[data-container-key="node-14"] .p-description {
html[data-logged-in="true"] {
    display: none;
}
}

I've tried all different ways to get this working. Does anyone know why this doesn't work?
 
If you are using data elements for styling then the following rules apply:

- multiple declarations without a comma require all conditions to be met - e.g. [data-logged-in="true"][data-container-key="node-14"] will only be applied if the member is logged in and viewing node 14

- multiple declarations with a comma will apply to all instances - e.g. [data-container-key="node-14"],[data-container-key="node-18"] will affect both nodes
 
If you are using data elements for styling then the following rules apply:

- multiple declarations without a comma require all conditions to be met - e.g. [data-logged-in="true"][data-container-key="node-14"] will only be applied if the member is logged in and viewing node 14

- multiple declarations with a comma will apply to all instances - e.g. [data-container-key="node-14"],[data-container-key="node-18"] will affect both nodes
Fantastic! Thanks :)
 
Top Bottom