Is it possible/advisable to use a Drupal 7 theme on a Drupal 8 installation?

I'm starting my first Drupal 8 project. Generally, I hit up a place like ThemeForest for a theme, but their D8 theme selection is depressingly slim. Can I use a (highly rated and actively maintained) D7 theme instead? Is there a better place to look for professionally built D8 themes?

| improve this question | | | | |
  • No, it's not possible. For one thing the template engine is now twig, so all templates would need to be rewritten – Clive Aug 24 '16 at 20:19
  • @Clive Bummer. ThemeForest has always been good to me in the past. Any alternative suggestions? Any idea why their selection is so slim? – Sam Aug 24 '16 at 20:21
  • 'Fraid not. D8 is still pretty new I guess, but other than that I'm not sure – Clive Aug 24 '16 at 20:24

No. You could convert one if you have the time - which involves turning all tpl files to twig, updating the syntax, and making necessary changes to the template.php file (which gets renamed to template.theme). That also includes replacing any functions that don't exist anymore, and using the new D8 equivalent. Again, not too hard, but it can be if you are brand new to D8.

For smaller themes, this can take few hours to a day or two; for more involved themes, it can take longer.

| improve this answer | | | | |
  • Kevin, what about theme-settings.php, if I am not wrong, neither it, nor mytheme.theme are really needed, and only info.yml && libraries.yml, are really necessary in all cases. – user16289 Aug 25 '16 at 0:21
  • I don't work on many themes that have a theme settings, but some still do it. Bootstrap is a unique snowflake in how it approaches it, but I have seen a few others as well. And yeah, libraries.yml, info.yml need to be provided. – Kevin Aug 25 '16 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.