Drupal Tips and Tricks

The installation, configuration and the work with Drupal obviously brings some challenges. Within this section you find some Tips and Tricks which shall help you to make your work easier.

Use "Virtual Sites" to create subsites or virtual sites (multi-site feature)

If you want to create an additional website without the installation of an another instance of Drupal or if you want to create a subsite or virtual site without the complicated set-up of the multi-site feature, I recommend you the module "Virtual Sites". It allows you to set-up an additional site within very short time. All you need to do is to install the module, to add a new virtual site and to configure it.

Drupal module "Virtual Sites"

Use "Inspect Element" to troubleshoot potential Design/CSS problems

If you work with different themes and modules you may frequently encounter problems with CSS. This might be in the process of modifying theme/module related CSS code or it might be that there are CSS conflicts between themes and modules (for Example because the same terms are used). In any case, I recommend you to use the "Inspect Element" function of your browser. Usually you can activate this function by a right click on the element/area you want to inspect.

Example of "Inspect Element" as a mean to troubleshoot CSS problems

Disable account registration by anonymous users

If you don't need the functionality, that anonymous users can register accounts, I strongly recommend to disable it. This will save you the time to handle masses of unwanted requests.

Drupal Account Registration and Cancellation

Use the Drupal module "Code per Node" to add custom CSS and Javascript

In many situation it can be quite useful to have a structured interface to add custom CSS and Javascript. The Drupal module Code per Node allows you to do so per node, per content type, per block and globally. After the installation you will get a "CSS & JavaScript" tab within nodes and blocks and a "Code per Node settings" tab within each content type. This allows you to add custom code very easily.

Drupal Code per Node module

Forget the Drupal SEO modules from LevelTen Interactive

Over time I stumbeled over SEO related Drupal modules from LevelTen Interactive and I tried them. Having all my experiences in mind I came to a very clear conclusion: Forget these modules, don't try to install them if you don't want to waste your time! Why?

Use the Drupal module "Empty Page" for pages that only consist of blocks

Frequently you might want to create Drupal pages consisting only of blocks. Apparently to create a page with a title and to configure the block to display with this page is not a very proper solution. Thus we recommend you to use the Drupal module Empty Page which allows you to create "empty" menu callbacks. You just define a link and optionally a title and you are done.

Using Drupal, HTML5, and Javascript to Create Hybrid Internet Apps

Author: Jared Whitehead

In the ever evolving internet world, an issue that has been arising is “how do I take an existing website and make it cross-browser compatible?” Of course the simplest answer to this would be to create a style sheet for each browser, it’s easy but it can take up a lot of time and hassle. The same issue comes up when you want the website to be viewable on a mobile device as well.

Use the Drupal module GeSHi Filter for syntax highlighting

The Drupal module GeSHi Filter offers you a convenient way to display different code on your website (php, html, css, js, etc.). The GeShi Filter module provides a filter for source code syntax highlighting for a wide range of languages. At the time of this writing the GeSHi library supports highlighting for more than 200 programming languages and configuration syntaxes.

Important notes:

Clean URLs not working? Check your .htaccess file!

Here are some of the most common reasons why your clean URLs may not be working (assuming you're using a normal Linux/Apache hosting environment).

1. Your site is in a subdirectory, or you're using an Alias, but you didn't set RewriteBase

2. Your .htaccess file didn't get uploaded at all

3. Your .htaccess file is corrupt

4. Pager and other query strings don't work


How to find the best Drupal themes on ThemeForest / Envato Market

Towards the end of 2015 you'll find more than 300 Drupal themes on ThemeForest / Envato Market. Most of them are nicely presented and look great in the provided demo. Hence it is sometimes not so easy to identify the right theme. This article provides you some tips how you can select the best Drupal themes on ThemeForest / Envato Market.

Drupal themes on ThemeForest / Envato Market


Drupal themes to be compared