Style (CSS) Settings

Category: PHP - Software Development

This module lets you use any (custom) theme setting or Drupal variable in any of your theme style sheets (CSS). It replaces all your theme style sheets by a rewritten version. Using special tags in the original style sheet you can replace a default value by any (custom) theme setting or Drupal variable. Because these tags are in fact comments the theme will still work without this module, showing the default values.Features - Use any Drupal variable by writing /*variable:name*/ instead. - Themes using this module will still work without since the default value is within the comments. If a theme setting is not found or set, the module will show the default (specified within the comments). - Automatic recognition of background images. Because comments cannot recide within url(...), you need to add the comments around it. The module will automaticly add url(...), and base path if needed. - Caching of rewritten style sheets by using a checksum derived from the theme settings array (so changes are visible imediately). - Relative paths inside url(...) are automaticly prefixed by the base path of the original style sheet.Usage - Add a custom theme setting like background_color to your theme. - In your stylesheet, change this:       body       {         background: red;       }  to something like this:       body       {         background: /*setting:background_color*/red/*setting*/;       } - Go down your theme's settings page (admin/build/themes/settings/theme) and set the background color setting you just created, for example to green.  Date: 17 May, 2012


Use Custom Theme - Drupal Theme - Drupal Css - Use - Custom - Theme

Homepage: http://ftp.drupal.org

Developer: ftp.drupal.org

License: Artistic License, GNU General Public License (GPL)

Operating System: Windows, Linux, Mac OS, BSD, Solaris

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Passing JSON of the data will return themed output.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Installation - Unpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


You can also theme your forums and map themes to Drupal paths or path aliases directly.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


If a visitor clicks on a link from the client site, they will be assigned a theme for a certain time.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Installation - Unpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Features - Easily attach a theming function and/or tpl.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


The Switchtheme Drupal module allows you to create a block to allow users to switch themes on the fly.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Allows to put a graphic request form in a forum, configurable in the general configuration of the ACP.

developer Developer: phpbb2hacks.de
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, BSD


This module adds a block that will show a local menu in the context of the page you're at.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris