0

If youd like to change the title attribute used in fancybox v2 to fancyboxtitle, this is how. The reason I needed to change it is because I need to use the regular title attribute for slightly different tooltip/alt text.

                if (isQuery(element)) {
                    obj = {
                        href    : element.data('fancybox-href') || element.attr('href'),
                        title   : element.data('fancybox-title') || element.attr('fancytitle'), /* Changed to fancy-title*/
                        isDom   : true,
                        element : element
                    };
bbuller
  • 185
  • 1
  • 3
  • 12
  • Figured it out. Didn't need to rename the first title. – bbuller Feb 25 '13 at 01:42
  • if your need a different element for fancybox title check http://stackoverflow.com/a/9611664/1055987 or http://stackoverflow.com/a/9813775/1055987 – JFK Feb 25 '13 at 22:27

0 Answers0