Utilizing my custom block to showcase a flash game on the main page of my Drupal 7 setup, I encountered an irksome message:
<div id="first-time"><p>No front page content has been created yet.</p>
<div class="item-list"><ul><li class="first last">
<a href="/node/add">Add new content</a></li>
</ul></div></div>
This message persists and I am unable to remove it. Is there a hook available for applying custom CSS? My objective in the module is to render the #first-time element as light grey or invisible.
I would rather avoid adding blank content simply to eliminate that text.
Many thanks! Alex
UPDATE:
I have integrated the following code snippet into my module:
function game_init() {
drupal_set_message('XXX init called XXX');
if (drupal_is_front_page()) {
drupal_add_css('#first-time {color: green;}', 'inline');
}
}
However, I cannot see the CSS code or the XXX string displayed on my front page.
UPDATE2:
Aha! It turns out clearing the cache did the trick (seems like the Drupal documentation was misleading - supposedly stating that 'inline' CSS does not get cached...)