Several changes have been made to the classes and IDs, which are available for styling your pages. These changes allow more granular control when styling your pages. Let's look into each change in detail.
Drupal 7 has modified the classes that are generated when the core blocks are used in your site. The new names are designed to make your CSS files easier to understand and make it easier for new themers to quickly style the built in blocks.
The following list contains the old and new IDs for each block:
Block Name |
Drupal 6 ID |
Drupal 7 ID |
---|---|---|
Recent blog posts |
block-blog-0 |
block-blog-recent |
Book navigation |
block-book-0 |
block-book-navigation |
Recent comments |
block-comment-0 |
block-comment-recent |
Active forum topics |
block-forum-0 |
block-forum-active |
New forum topics |
block-forum-0 |
block-forum-new |
Language Switcher |
block-locale-0 |
block-locale-language-switcher |
Syndicate |
block-node-0 |
block-node-syndicate |
Most recent poll |
block-poll-0 |
block-poll-recent... |