私はプリティフォトメディアワードプレスプラグイン(バージョン3.1.4)を使用しています。私にとっては問題なく動作しますが、私の問題は、画像をクリックしてライトボックスで開いたときに、URL に #prettyPhoto[landscaping]/0/ のような追加のタグがあることですwww.myssite.com/#prettyPhoto[landscaping]/0/
。
この余分なタグを削除するにはどうすればよいですか。ここに私の jquery.prettyPhoto.js ファイルのコードがあります:
function setHashtag(){
if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API
location.hash = theRel + '/'+rel_index+'/';
};
function clearHashtag(){
if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto";
}