答:
您需要在您的主题找一些事情需要改变(事实上它可能在文件avia.js找到你的情况就行466)
--- 1) ,social_tools: '',
--- 2),deeplinking =假,
您需要更改到
,deeplinking = TRUE,
,并添加2个元素(iframe_markup,inline_markup),并改变social_tools,如下图所示:
因此新线466看起来像
elements.prettyPhoto({
social_tools:'<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>',
slideshow: 5000,
deeplinking: true,
overlay_gallery:false,
default_width: ww,
iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
inline_markup: '<div class="pp_inline">{content}</div>',
default_height: wh
});
这是Twitter和Facebook。只需以上面看到的相同格式添加您想要的内容即可。缺口。
参考:http://www.kriesi.at/support/topic/single-image-share
这个问题有什么好运?看起来这个插件的这个功能已经被放弃了。在prettyPhoto演示网站上的演示中,like按钮变灰,{出现在应该分享的位置,并且在类似工作的youtube链接上,它只喜欢整个页面而不喜欢视频本身。你知道一个能够处理fb的灯箱,并分享特定图像和youtube视频吗? –
去年年底,我回到了这个案件,不幸的是,没有任何解决办法:-(我在WP上使用的主题的更新也没有帮助,因为如果我没有记错,prettyPhoto的文件已更新并更改/还原了一些我尝试了以前偶然发现的推荐解决方案,并且提示我没有运气,恐怕我还没有寻找替代灯箱或使用其中一个的主题,一切都很顺利 – c0ffeec0ding