User login


Hands on a Blackberry: Making an HTML5 site work in old Blackberry (hint: remove HTML5 elements)


The Blackberry has been reacting very differently, and badly, to the mobile theme compared to iPhone and Android.

What i've learned from having the BlackBerry for a couple days is that it is not able to apply CSS to HTML5 elements such as hgroup, article, and footer.

In the blackberry branch i've swapped these elements for divs, and the improvement has been great.

HTML5 placeholder via form alter

In a module OR a theme:

  * Use the HTML5 placeholder attribute to add help text to the search box.
function PROJECTNAME_form_search_block_form_alter(&$form, &$form_state) {
  $form['search_block_form']['#attributes']['placeholder'] = t('enter search terms');

Syndicate content