My client raised an issue that when viewing the source the logo of my website does not have any attributes, but I saw many themes, and not all have those attributes.

How do I add these to the logo? Is it really required?


The width and height is not required when using the img tag, but you can add it by overriding the theme template for the page, aka page.tpl.php in the directory containing the theme for your site. Usually sites/.../themes/YOURTHEME

  • It's not required but it's consider good practice to include them to avoid your page being resized during DOM rendering (Google mentions to specify image dimensions). Here's the relevant Drupal.org issue.
    – tostinni
    Feb 17 '12 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.