I want to display title property of an image in node view page. How can I display title of an image along with image in node page?

  • 1
    Normally the title is an attribute of the img tag. You can change this in a field formatter and then downstream in a preprocess hook or template.
    – 4uk4
    Nov 30, 2018 at 13:17

1 Answer 1


Custom Formatters

Try the Custom Formatters module to create a custom formatter, Tokens may help. There are some examples for inspiration: Custom Formatter Examples.

Or implement through your own custom solution in a module or a theme: Create a custom field formatter.

Views Block

Another way of doing it is hiding the Image field on Manage Display, and creating a Views Block instead with a contextual node ID filter that outputs that image field along with the title. If you don't see the title available as a field in content views out of the box you can add a Relationship to that field to get it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.