简体   繁体   中英

Drupal Theming a block

I just created a block that was added to the Footer region of my theme. However, I need to theme it and I'm not having much luck.

The footer currently has two blocks, contribute_button and the powered_by block. I currently have block--footer.tpl.php overriding how the footer region is rendered, is that causing my problem?

How can I theme the contribute_button block in my footer region? block--contribute_button.tpl.php isn't effective.

Theme developer is Your friend, You could check the suggestions. And don't forget to clear template registry cache.

I think page-footer.tpl.php will work. Just try it once.

Pls provide your sites link here and I can have a look and advice you.

Also Try in css to use #contribute_button block but this is my guess.

Cheers, vishal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM