Hi,
I'm a newbie to Drupal.
I would like to use the Drupal8 Zymphonies Theme at my Drupal 8 website, but I would like to customize it.
I thought the best way to do this was creating a new theme that is a subtheme of the Drupal8 Zymphonies Theme, then setting my website to use my new theme, and override whatever I want. Whoever, I'm stuck at the beginning: after having my theme created and set my website to use it, the look of my website got messed up. From the debugger pane of my browser it seems like Drupal is trying to fetch the files of Drupal8 Zymphonies Theme (e.g. images) in the folder of my own theme. I would like to avoid copying those files to the folder my own theme, otherwise I could have just created a copy the whole folder of the Drupal8 Zymphonies Theme without defining a subtheme of it.
I hoped, subthemes provided a mechanism, in which I can define my own them by just defining its differences compared to the Drupal8 Zymphonies Theme. That seems not to be the case.
Could you please help me out and let me know what the proper way is for customizing the Drupal8 Zymphonies Theme?
Best Regards,
corres
Comments
=-=
have you worked through https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t... ?
Sure, I did work through this
Sure, I did work through this one and several other pages, but none of them answer the question I raised. The page you linked is just a technical description on how to create a subtheme. I successfully created it, but it doesn't work as I expected.
Let me put my question in another way: what I want is apply some modification on Drupal8 Zymphonies Theme and use it on my website. I find it desirable not to touch the original theme itself. Therefore I created a subtheme and expected it would look exactly the same as the Drupal8 Zymphonies Theme, and all I have to do is define my changes. (Just like in C++, if I inherit from a class, I just have to define the differences. I'm a C++ developer). But apparently, that's not the case, my subtheme doesn't look like the Drupal8 Zymphonies Theme. Could you please let me know the proper way of customizing a theme (Drupal8 Zymphonies Theme)? Thanks in advance.
my subtheme doesn't look like
There's only one reason for this - you've done something incompatible with the desired outcome (sorry to state the obvious), however I can't say what that is without knowing exactly what you have done, and I mean every file, every line.
What I'm saying is that there are many reasons why that might be, I'm not going to try and guess. You need to show me precisely what you have done.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Thank you for the
Thank you for the constructive response. The only thing I did is I created the mystyle.info.yml file and defined a subtheme in it pretty much like the one here:
https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t...
I didn't even define blocks or libraries. This is the single file I have in the folder. At this point I expected my theme to look exactly like the Drupal8 Zymphonies Theme, because I didn't override anything. Apparently this is not the way how it works. Could you please let me know what is the proper way of customizing a theme?
Place the whole shebang (the
Place the whole shebang (the base theme/s + your sub-theme) somewhere I can download it and install it.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Thank you for your help. I
Thank you for your help. I will share it, but I can do it tomorrow only.
I found the solution here
I found the solution here:
https://www.drupal.org/docs/8/theming/sub-theme-inheritance
The problem was that a sub-theme inherits only certain components of its base theme, but other components are not inherited. Regions are not inherited, they have to be defined in the sub-theme again.
I don't have any more question open. Thanks for your help.
That is why we always ask to
That is why we always ask to see the code.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.