Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In Drupal, themes have features. These theme features allow designers to toggle elements a theme can control, like if the site logo is shown or not. In addition to features, Drupal themes share global display settings that allow you to set which node types would have author info appearing in them, which is perfect for blog posts, but not pages or our flower products. Let's see what features and post settings are available in Drupal 6, and how they affect all themes. So to configure the global theme settings for our Drupal site, we need to visit the Themes Administration page.
So from the Administer screen, we click Themes and there is actually a tab up here at the top that says Configure. Now this Configure link is different from the configure links that appear next to each theme that is only enabled. We are not going to go here. We are going to, actually, click up in this tab, next to List, and this brings us to the Global Settings page for themes. Now this page will actually affect all themes across our site. Right now we only have Garland, but we can still set these settings now, and have our custom themes pick up these settings later.
So the first side that I'll introduce to you is the Toggle display side, these are the theme features I was mentioning, and we can do things like toggle off the Logo, toggle off even things like Primary links. The Primary links, remember, are our main menu navigation up at top, and the logo appears in the top left corner of Garland. So with the Logo now off and the Primary links also off, let's click Save configuration, and see what happens.
Now we see that Drupal has respected our feature settings, and has removed the logo and the primary menu. Let's bring those back, Logo and Primary links, Save configuration and now they are back. There is one feature, before we leave this box, that I want to make sure is enabled, and that's the Search box. We are going to use this in our custom theme later on. So make sure it's enabled. Now coming to the right side of this administration screen, we see the Display post information, and in here is actually a list of every content type, or node type that is actually installed into our site.
So we see that default Drupal content types: Blog, Page and Story and any of our custom types, which, right now, we have as Flower. This Display post information, as it outlines in this help text, is actually where you can deactivate, or remove the author name, and info details of the post, when they are viewed. So let's actually make sure that Pages do not have the author info, nor our flowers. So I am going to go to, actually, before I click Save configuration, I am going to go open the Homepage in the new tab. So we can see right now, we actually get the author details at the top of every Flower post, and of course, as expected, at the top of every blog post.
We do not want this on the flowers, but we do want this on the blogs. So let's go back to the Themes Administration screen, make sure we are in Global settings, and we are going to uncheck Flower and Page and click Save. So now that our configuration options have been saved, let's go refresh our Homepage tab and see how the flowers will now no longer carry the author details. Click refresh and now Drupal has removed the author info from the flower types, but, as expected, not from our blog types.
We can even check our services page, and see that it no longer also has the author info, nor the about us page, and that's what we want. So closing this tab, going back, we can now see that any content type that we create, or is added by a module that we install, would actually appear here, and we should come back to this screen anytime we've created a content type or install the module that provides a new type to make sure that we set which ones would actually have posts information and which one should not.
These standard features available to all Drupal 6 Themes are good enough for most users. Theme features are neat but are limited to the defaults that you see here in Drupal. If you're wondering if a custom theme can have its own custom features, this is possible, but it requires a lot of complex PHP programming, and should be left in the realm of developers.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 105106 Viewers
56 Video lessons · 116890 Viewers
71 Video lessons · 86102 Viewers
131 Video lessons · 41178 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.