1

Scenario:

<a href="#block-block-1">Book</a>

When I click book, it will scroll down to the block and url will be www.example.com/#block-block-1. Is there anyway to change url to something meaningful like www.example.com/#book?

I've tried suggestions from How to give meaningful id names to blocks?, but it is not really what I want.

1 Answer 1

1

The Block Attributes module will let you add a meaningful id attribute to any Drupal block.

The Block Attributes module allows users to specify additional HTML attributes for blocks, through the block's configuration interface, such as class, id, style, title and more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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