Summary: I wanted to use Font Awesome in places I could not just add an HTML tag. Solution: I added them in CSS using :before I found the solution for adding Font Awesome icons via CSS, which uses the following: .someclass:before { content: “\f09b”; font-family: FontAwesome; /* more styling for the icon, including color, font-size, […]
Archive | Development diary
Adding tokens to Views block title in Drupal 7
Uncategorized
Summary: I wanted to use a token in the title on blocks generated by Views. Solution: Adding a hidden field to the view to access the token, hiding the block title and then adding the title via a global text field. I wanted to add a token (username of the userpage being viewed to be […]
Showing blocks on a user’s page only
Drupal Drupal Drupal Projects Projects TEF TEF WebSummary: Cannot show block on userpage just by setting visibility to ‘user’. Solution: PHP snippet on block visibility. I had the problem outlined here on Stack Exchange. In particular, setting the block to display on /user only did not work. I found the solution here, which shows the block on the user’s page, but not […]