I'm waiting for improvement on this too đ
Showing widget on some of the pages
-
Is it possible to show some widget on some of the pages? For example, let's say I want to show a widget only on categories page. Is that possible?
-
It is possible, although not on the current default theme.
You'd either have to modify your theme to add widget areas (see the Lavender theme for example) or wait till we release Persona with the new widget system we have planned
-
@psychobunny Awesome
-
@psychobunny New widget system? Oh please tell us more!
-
@psychobunny is there any way to disable global widget on specific pages?
-
If you assign a class to the container, ex.
my-widget
, you can hide it on specific pages by doing custom CSS like so:.page-recent .my-widget { display: none: }
where .page-xxx is the route name
-
@psychobunny I tried your method and it's working.
Except this little mistake.page-recent .my-widget { display: none; }
Is there a way to do the opposite?
Show a widget on only one page? -
.my-widget { display: none; } .page-recent .my-widget { display: block; }
Should work because the second selector gets priority, because it's more specific.
(However, it is still rendering on every page.)
-
@yariplus Thanks. Works like a charm.