Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. Tips and Tricks
  3. Use Views and the Option "Rewrite Results" to create stylish hover effects for Images

Use Views and the Option "Rewrite Results" to create stylish hover effects for Images

Tips and Tricks
June 01, 2014
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
121

If you've spent any time with Drupal, you've heard of — and likely installed — the Views module. If you haven't, then you're very likely working harder than you need to! Views is Drupal's query builder, enabling you to create lists of just about anything, as well as providing basic formatting and the ability to do basic formatting of your items.

Since most Drupal designers have used Views, they generally know its power: Yes, it will relate data to other data, sort, filter, and so on. But one very helpful feature neophytes may not have discovered is its ability to rewrite fields. In essence, a field can be added to the display, but in the settings for that field you have the option to “rewrite” that field; it will keep the settings of that field, but will masquerade as something else: it can be changed to plain text, to a link, or as in this case to a stylish hover effect.

For the hover effect just create a view with fields, add the image and all the elements you possibly want to display with the hover effect (examples might be title, description and path) and use the function "Rewrite Results" to create the hover effect. The fields with the elements to be displayed need to be before the image field and are "Excluded from display". Under the following link some inspirations for stylish hover effects (just apply the markup to the image field with "Rewrite Results" and add the css to your stylesheet):

Demo: http://tympanus.net/Tutorials/OriginalHoverEffects/index5.html
Code: http://tympanus.net/codrops/2011/11/02/original-hover-effects-with-css3/

Use Views and the Option "Rewrite Results" to create stylish hover effects for Images
Modules

Read more articles

Newer
The best Drupal modules to show image and video contents in an overlay gallery
Older
Use Browser Shots to test the browser compatibility of your Drupal website
  • Log in to post comments
Profile picture for user drupal
drupal
121
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element