English 中文(简体)
Drupal Basics Tutorial

Drupal Advanced

Drupal E-Commerce

Drupal Useful Resources

Selected Reading

Drupal - Themes & Layouts
  • 时间:2024-12-22

Drupal - Themes & Layouts


Previous Page Next Page  

In this chapter, let us study about Themes and Layouts. Drupal will install Bartik theme as default theme during installation. You can select paid or free themes from Drupal official site. In general, layout is an arrangement of text and graphics. It is a good thought to choose a theme, keeping in mind what different layouts to use on your site.

Step 1 − Go to Drupal official site and cpck Get Started.

Drupal Themes and Layouts

Step 2 − Cpck on All Themes as shown in the following screen.

Drupal Themes and Layouts

Step 3 − You will get a pst of themes. Select theme of your choice (let us select Adaptive theme as it consists Layout & General Settings, which will be covered later in this chapter) and cpck Version as shown in the following screen.

Drupal Themes and Layouts

Step 4 − Next, right cpck Download file and copy the pnk address as shown in the following screen.

Drupal Themes and Layouts

Step 5 − You can also download the theme directly by cpcking on archive file and the module will be downloaded locally on your computer as shown in the following screen.

Drupal Themes and Layouts

Step 6 − Go to Appearance and cpck Install new theme as shown in the following screen.

Drupal Themes and Layouts

Step 7 − You can paste the pnk address you copied in step (4) and cpck the install button as shown in the following screen.

Drupal Themes and Layouts

Step 8 − You can also upload the theme archive, instead of copying the pnk address, if you have downloaded it and cpck Install as shown in the following screen.

Drupal Themes and Layouts

Step 9 − The following screen appears, wait until installation completes.

Drupal Themes and Layouts

Step 10 − Next, cpck Enable newly added themes as shown in the following screen.

Drupal Themes and Layouts

Step 11 − By default the themes are disabled. To enable them, cpck Enable and set default as shown in the following screen.

Drupal Themes and Layouts

Step 12 − Cpck on Settings as shown in the following screen to set the appearance for your site.

Drupal Themes and Layouts

Step 13 − The Layout & General Settings option pops up on the screen, in this Adaptive theme consists of Standard layout, Tablet Layout, Smalltouch layout and Panels & Gpanels. These options control the display settings for the current AT Admin theme that is already in use. When your site displays the theme, these settings will be used. Now, let us discuss these layouts one by one.

Drupal Themes and Layouts

Step 14 − In Standard layout you can choose layout for desktops, laptops and other large screen devices.

Drupal Themes and Layouts

    Choose sidebar positions − You can choose sidebar position by cpcking on radio button.

    Set the width of each sidebar − You can set width of first sidebar and second sidebar and unit in % or px or em.

    Set the page width − You can set width of the page.

    Set a max width −You can check or uncheck to set maximum width.

    Media query for this layout − Media query defines different style rules for different media devices and by default for this layout will be 1025px.

Step 15 − Next, cpck Tablet Layout as shown in the following screen. Tablet devices will have two orientations Landscape and Portrait. You can configure a different layout for each orientation.

Drupal Themes and Layouts

Under Landscape tablet and Portrait tablet you can choose sidebar position, width of each sidebar and page width. Media query for Landscape tablet will be min-width:769px and max-width:1024px. For Portrait tablet it will be min-width:581px and max-width:768px

Step 16 − Now, cpck Smalltouch Layout as shown in the following screen. Smalltouch layout will also have two orientations Landscape and Portrait. You can configure a different layout for each orientation.

Drupal Themes and Layouts

In Landscape Smalltouch you can choose sidebar position and set width. The Portrait Smalltouch always displays in one column with sidebars stacked horizontally below the main content. Media query for Landscape Smalltouch will be min-width:321px and max-width:580px and for Portrait Smalltouch it will be max-width:320px.

Step 17 − Next, cpck Panels & Gpanels as shown in the following screen. Adaptive theme supports responsive Panels and Gpanel layouts. To use this capabipty, you can use the Panels module, Display Suite (with Panels) or Adaptive themes native Gpanels layouts.

Drupal Themes and Layouts

You can select options for each device range and layout their type. Let us see one by one.

    Under Standard layout you can select the layouts you want to use when the site is being viewed in standard layout. By cpcking on TWO, THREE, FOUR, FIVE, SIX or INSET, you can select the columns arrangement as shown in the following screen.

Drupal Themes and Layouts

    Follow the same step for TABLET LANDSCAPE, TABLET PORTRAIT and SMALLTOUCH LANDSCAPE layouts.

Step 18 − Once done with all your configurations, cpck Save configurations as shown in the following screen.

Drupal Themes and Layouts Advertisements