Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With acquia marina 3.0, can I add more icons for blocks?
I only know the icon directory and there are related settings in the *.info of the acquia marina theme.
The settings does not talk about the icon image files. How to match the selections to the icon files?
Hosais.
Comments
Comment #1
hosais CreditAttribution: hosais commentedI added icon with following steps:
1) added icon-fly.png to the directory of icon.
2) added in acquia_marina.info
skinr[marina-block-title-icon-styles][options][14][label] = Fly
skinr[marina-block-title-icon-styles][options][14][class] = icon-fly
3) added fusion-acquia-marina-style.css
.icon-fly .block-icon {
background: url(../images/icons/icon-fly.png) no-repeat left center;
}
Then that is it. I hope in the future it would be easier to add different icons.
Hosais.
Comment #2
jeremycaldwell CreditAttribution: jeremycaldwell commentedThanks for the steps Hosais, that's perfect. Create the image, update the .info file (for Skinr options), add the CSS to your local.css file.
Comment #4
david@thrale.com CreditAttribution: david@thrale.com commentedTo help others avoid the mistakes I made ...
1) added icon-fly.png to 'acquia_marina/images/icons'.
2) added in acquia_marina.info
skinr[marina-block-title-icon-styles][options][14][label] = Fly
skinr[marina-block-title-icon-styles][options][14][class] = icon-fly
3) added fusion-acquia-marina-style.css to local.css and put in 'acquia_marina/css' - note the location for local.css is different in version 3
.icon-fly .block-icon {
background: url(../images/icons/icon-fly.png) no-repeat left center;
}