Hi

What is the best practice in regards to the excessive HTML markup Drupal spits out (Esp around blocks and fields) ....remove or keep? I've looked at page source for the bigger Drupal sites out there and see both. Does leaving it in affect SEO? And taking it out (let's say I have 10 blocks) leads to 10 block templates in theme file which could hit performance...is there an official Drupal best practice on this?

Comments

nevets’s picture

I tend to leave it in, less work and generally more flexible to theme.

The amount of html should not impact SEO.

You can instead of making one template per block simply override block.tpl.php

SidneyGijzen’s picture

You can also use the Mothership theme, which aims to provide cleaner markup.

misoks’s picture

A much bigger factor in SEO is making sure that your markup accurately reflects the content on the page, i.e. make sure your navigation and headers clearly indicate what they are. Google can handle looking through all the Views markup.