[support] Drupal 7/Zen Theme Question

Hakan agents at meddatainc.com
Tue May 1 20:57:58 UTC 2012


Thank you Michael, that was helpful. In other words, the block ID is
generated programmatically by the block module? It would seem to me
that the footer message would use a more "recognizable" id than
"block-block-1" - as in my case - being IDed as the first block
entered/saved...

On Tue, 01 May 2012 13:45:08 -0700, Michael Prasuhn wrote:

>That ID is generated by the ID of the block in the database. If you go
>to example.com/admin/structure/block you'll see a list of blocks, and if
>you find the block that represents your footer and click on the
>configure link next to it, you'll see the block ID in the URL. In your
>case it would look something like:
>
>admin/structure/block/manage/block/1/configure
>
>A common format for CSS IDs for blocks is block-MODULENAME-ID. So in
>this case your block is provided by the block module (which handles the
>blocks that you can edit on the blocks page) and it's ID is 1.
>
>-Mike
>
>Hakan wrote:
>> In Drupal 7, I have created a subtheme from Zen which I am - whenever I
>> have some spare time - slowly developing into the custom theme for one
>> of my websites. Obviously this is a learning experience although I do
>> have a little experience from Drupal 6 several years back.
>> 
>> I have installed Firebug under Firefox and am using it to look at
>> various properties of one of the pages I am theming. My footer message
>> shows an id of "block-block-1" - which I have then used to assign the
>> appropriate CSS property values. I would, however, like to understand
>> where/how that id is generated and did a grep of the entire website
>> looking for that particular id. I only found it in the Zen theme and in
>> my derived subtheme, not in any particular Drupal file.
>> 
>> Could someone who knows Drupal 7 better tell me where that particular
>> id is generated for the footer message?
>> 
>> Thanks.
>> 
>> 
>> 
>
>-- 
>__________________
>Michael Prasuhn
>503.512.0822 office
>mike at mikeyp.net
>




More information about the support mailing list