drupallayoutdrupal-themes

How to make a custom layout in a subtheme from omega 4 Drupal show in appearance settings?


I've started working with the omega 4 theme in drupal, switching from omega 3. I've created a subtheme succesfully, and according to the documentation I want to make my own layout. I've copied over the "Simple" layout from omega to my subtheme folder, as well as the required css and sass files. I've renamed all instances of Simple to Grid (my layout name).

That all seems fine, but when I go into my drupal installation, appearance -> settings -> layouts I still only see the four main omega layouts (simple, divine, hero, off canvas). It claims to show any layout from omega or installed subthemes. Why won't my layout show up for selection?

Additionally: Is it possible to use a different layout for the front page than the rest of the site?


Solution

  • I had the same problem myself and it turned out that in MY.layout.inc I forgot to changhe the value

    template = simple-layout
    

    with

    template = MY-layout