简体   繁体   English

如何自定义同位素的Wordpress插件?

[英]How can I customize the Isotope for Wordpress plugin?

I recently added Metafizzy's Isotope to my wordpress page, but I had some trouble linking it to my posts. 我最近在我的wordpress页面上添加了Metafizzy的Isotope ,但是在将其链接到我的帖子时遇到了一些麻烦。 As a solution I removed the code I had put in manually, and installed this Isotope for Wordpress plugin. 作为解决方案,我删除了手动输入的代码,并安装了此Isotope for Wordpress插件。

Has anyone used this and customized it using Isotope's different methods and layout modes? 是否有人使用过这种方法,并使用了同位素的不同方法和布局模式对其进行了定制? I'm having some trouble locating those key pieces of code (that are so easy to edit when you add isotope manually). 我在查找那些关键代码时遇到了一些麻烦(当您手动添加同位素时,这些代码很容易编辑)。 This plugin seems to make editing them a bit trickier. 这个插件似乎使编辑它们变得有些棘手。 If anyone could point me in the right direction I'd really appreciate it. 如果有人能指出正确的方向,我将非常感激。

Thanks! 谢谢!

The isotope is function is called in the includes>js folder in the file called load_isotope.js 在名为load_isotope.js的文件的includes> js文件夹中调用了isotope is function

You can see the layout mode on line 6. Probably adding that functionality to the plugin would be a good idea. 您可以在第6行看到布局模式。可能在插件中添加功能是个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM