Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Class specific to cornerstone editor

Дата публикации: 18-09-2026 17:57:28

Oh sorry. I’m not looking for a toggle solution.
The contents appear inside a frame and I thought there might be an ID or a Class from the Cornerstone frame that I could include in my CSS.
I decided to take one more look and I actually found it.
Cornerstone includes a class in the HTML tag of the page preview area for the Cornerstone theme (light or dark), so I was able to create the visibility exception I was looking for with this:
html:not(.tco-ui-theme-dark) $el{visibility:hidden;}
Looks like there’s also a .tco-preview class on the Body tag which would likely also work. I’d tried tco-root which is further up in the DOM and that didn’t work. The trick is getting the rule inside the iframe displaying the actual page HTML.
Hopefully this helps others!

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Class specific to cornerstone editor05.3318-09-2026
2Class specific to cornerstone editor033.1818-09-2026
3Class specific to cornerstone editor07.8418-09-2026
4Cornerstone editor making the page taller than the editor06.6617-09-2026
5Cornerstone editor making the page taller than the editor07.5618-09-2026
6How can I do this change effect with themeco/conerstone?013.8519-09-2026
7Assymetrical Curved Background Image015.118-09-2026
8Link Property Bug07.118-09-2026
9Add ACF into Cornerstone Side Panel014.3519-09-2026
10API Feed updates every few minutes, need to bust cornerstone builder's page cache05.1818-09-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 6.62. Источник: theme.co.