Save Layout as Preset

Permalink
In 5.7.5.4 when saving Layout as preset only saves the details of the columns eg how many, position , but does not save any other attributes such as padding , background etc . Is this correct ?

Responsive
 
MrKDilkington replied on at Permalink Best Answer Reply 1 Attachment
MrKDilkington
Hi Responsive,

Using the Elemental theme to test, I was able to add style attributes to a custom layout preset.

Example:
public function getThemeAreaLayoutPresets()
{
    $presets = array(
        array(
            'handle' => 'left_sidebar',
            'name' => 'Left Sidebar',
            'container' => '<div class="row"></div>',
            'columns' => array(
                '<div class="col-sm-4"></div>',
                '<div class="col-sm-8"></div>'
            ),
        ),
        array(
            'handle' => 'right_sidebar',
            'name' => 'Right Sidebar',

Please see attached screenshot of the result of "Right Sidebar".