How do you style a stack in 5.7

Permalink
I notice there are new methods for styling Blocks and Areas in 5.7 but struggling to add a custom style to a stack.

Is it possible to do?

TheRealSean
 
A3020 replied on at Permalink Reply
A3020
return [
   'core_stack_display' => ['stack-container-class']
];


Put that in your getThemeBlockClasses method in page_theme.php. Then you can select the class in the Custom Style dialog.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@akodde

I didn't know you could do that, thank you.

For anyone else trying the code, it uses shorthand array syntax, so it will only work on PHP 5.4 and above.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.