Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am currently making a theme for drupal 8. I would like when someone installs my theme, to automatically install the content types and data that is required to run the theme properly. For example, my main slider relies on a certain content type and data to run. I need when my theme is installing to install those as well.
So mostly I need to know how to run drupal console commands upon theme installation so that I can import with configuration management.
So I was looking at the region definition of my theme and I found that the regions are not appearing properly. For instance, the sidebar is not displaying on the left side of the page; but instead it is displaying just below my content region. Below is a snippet of my page.html.twig file.