Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6382899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:34:57+00:00 2026-05-25T02:34:57+00:00

I created a content type for an image gallery. It has an image field

  • 0

I created a content type for an image gallery. It has an image field where I browse for the image file and I can define Alternate text and Title. The result looks somtehing like this:

<a href="image.jpg">
    <img src="image_thumb.jpg" title="my image title" alt="my image alt text" />
</a>

I am implementing Fancybox gallery. When I click on an image, gallery opens, but I don’t see the title because Fancybox jQuery script takes the title attribute from tags to display. Drupal puts it in tags.

How can I make Fancybox look for the title attribute in tags?
I tried to modify the jquery script, but it’s too complicated for me.

Can Drupal display the code like this:

 <a href="image.jpg" title="my image title">
    <img src="image_thumb.jpg" title="my image title" alt="my image alt text" />
</a>

UPDATE

I found a solution: in jquery.fancybox-1.3.4.js on line 93

title = selectedOpts.orig.attr('alt');

just replaced ‘alt’ with ‘title’ 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:34:58+00:00Added an answer on May 25, 2026 at 2:34 am

    you can change line 86 with this.
    this version adds another condition witch fits your needs

    title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || $(obj).children("img").attr("title") ||'';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a custom content type: product This product has an image (cck file
I have created a view to list the page content type(title, teaser and image)..
HI i have created a content type call mycontent it has 2 fields Label:
i created an additional content type called clients where I can create new client
I've created a new content type called Homepage, which has a number of fields.
How can I achieve the following: I have created a content type called journal,
I created a new content type for a wiki page library. I added this
I have created this report using BIRT and phpjavabridge <?php header(Content-type: application/pdf); header(Content-Disposition: inline;
Can I avoid forwarding after content is created / saved ? I don't want
The PHP code below generates text as a dynamically created image, how would I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.