2012-03-15 2 views
0

ファンシーボックス1.3.4でテーマを変更しようとしていますが、本当に苦労しています。今すぐFancyboxはタイトルを表示します。 'xのx画像を'ファンシーボックス1.3.4 - 複数のタイトルを表示<BR>ワードプレス

これはここで見ることができます:ここで

http://leahyerpe.com/exhibit/paintings/

は、タイトルに関してはjs.options.phpからスクリプトです:

function(title, currentArray, currentIndex, currentOpts) { 
          return '<div class="gallery-image-title">' + (title && title.length ? '<strong>' + title + '</strong>' : '') + '<span class="image-count">Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</span></div>'; 
    }, 
    'onComplete' : function(){ 
     jQuery("#fancybox-close").hide(); 
     jQuery("#fancybox-title").hide(); 
     jQuery("#fancybox-wrap").hover(function() { 
      jQuery("#fancybox-close").stop(true).fadeTo("fast", 1.0); 
      jQuery("#fancybox-title").stop(true).fadeTo("fast", 1.0); 
     }, function() { 
      jQuery("#fancybox-close").stop(true).fadeTo("fast", 0); 
      jQuery("#fancybox-title").stop(true).fadeTo("fast", 0); 
     }); 
    } 
}); 

何私は「xのxイメージ」のタイトルを削除し、その中に改行が入ったタイトルに置き換えます:

「画像のタイトル」


「情報の3枚目」「情報の別の部分は、」これは可能ですか?今すぐ私はワードプレスに1つを挿入すると の表示にタイトル属性を取得することはできません、私は表示することができます 'xのx'です。

ありがとうございます。 J

答えて

0

私はfancyboxのセットアップでそのようなものを使用します。INFO1、INFO2、情報3は、パブリッシュしたいデータです

... 
'showTitle' : true, 
'titlePosition' : 'over', 
'titleFormat': function(title, currentArray, currentIndex, currentOpts){ 
... 
return '<div>'+info1+'</br>'+info2+'</br>'+info3+'</div>'}, 
.... 

。もちろん必要な書式などを追加することもできます。

関連する問題