I'm trying to modify the kickstart 2 omega theme. On some pages I do -not- want Drupal to add the height and width to each IMG.

As a start, I thought I could add the following code to the template.php file. Doesn't work.

    function commerce_kickstart_theme_preprocess_image(&$variables) {
       $attributes = &$variables['attributes'];
       foreach (array('width', 'height') as $key) {

What am I doing wrong? In the long run, I would only want to apply this to a few specific blocks, but I wanted to start with this, which I realise is global.


My Local Electrician’s picture

Can't you override the image sizes to your stylesheet?


#block-block-1 img{
height:50px !important;
width:50px !important;

Offering Drupal website services to the UK - www.my-local-trades.co.uk