


You will find a directory named templates and in that, you will find a bunch of other directories. Classy is a core theme so you need to look in the core/themes/classy directory to find the template. Related: Modify a contact page theme templateįirst, you need to get a copy of the base theme you want to override.
DRUPAL CKEDITOR TEMPLATES HOW TO
So let's take a look at how to add the new regions to your theme. However, there will be a time when you want to modify a template and adding new regions to your theme is one of those times. Up until now, we have relied on the base themes templates which are great to get going, in fact for a basic website or blog you can get a long way with what comes out of the box. One thing to note here is the order you add the regions will be the order they appear on the block layout page at admin/structure/block in the Drupal backend. Yes, it's that simple, add region machine name and human-readable name pairs. The first step is to add the regions to the THEME_, below is the new regions section. I think that will do it for now, below is my new regions layout. One region will be a hero region and another is going to be a below content region(s). Next, I will add a few regions to give more options for a site builder or content manager to place blocks. I have done this before in Drupal 7 but going forward I think I will referain for doing it unless obsolutley is neccessary. It is possible to add regions to other templates, however, this will require a little more work and thus I will cover it in a future article.

All default regions are in the, this is the main layout template. One thing to remember is if you want to keep things simple and use most of the base theme's templates then you need to be aware of where the regions are in relation to the templates. If you now clear the cache you will see the renamed region. I'm going to rename them Sidebar first and Sidebar second. Note that I am only renaming the human-readable name of the region. Looking at the above regions I will rename the Left sidebar and Right sidebar regions. I am going to rename a few regions first.
