Advertisement
Guest User

disable captions in wp-jquery-lightbox

a guest
Jun 30th, 2011
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. In response to: http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-supress-caption-field-in-popup?replies=1
  3. */
  4.  
  5. //in wp-jquery-lightbox.php change
  6. define('JQLB_SCRIPT_URL', JQLB_URL.'jquery.lightbox.min.js');
  7. //to:
  8. define('JQLB_SCRIPT_URL', JQLB_URL.'jquery.lightbox.js');
  9.  
  10. //in jquery.lightbox.js change:
  11. var s = '';
  12. if (title != '' && caption != '') {
  13.     s = title + '<br />' + caption;
  14. } else if (title != '') {
  15.     s = title;
  16. } else if (caption != '') {
  17.     s = caption;
  18. }
  19.  
  20. //to:
  21. var s = '';
  22. if (title != '') {
  23.     s = title;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement