让整个主题小部件化是个好主意吗?
我主要看到过在侧边栏或多列布局中使用小部件的网站。但是,我想知道如果我们可以在每个块(如页眉、主要内容块、页脚等)中使用小部件会怎么样。这是一个好主意还是坏主意?
I have mainly seen sites using widgets on sidebars or inside multi-column layout. However, I was wondering what if we could use widgets in every blocks like header, main content block, footer etc. Is that a good or a bad idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个坏主意。 Wordpress 小部件很灵活,但性能较低。为了优化wordpress,我以前自己编写代码实现一些功能,我的博客侧边栏没有使用任何小部件,而是实现了我想要的所有功能,例如高级的“最近评论”模块,其中包含评论作者的头像和评论内容
It's a bad idea. Wordpress widgets were flexible but give you a low performance. In order to optimize the wordpress I used to code by myself to implement some functions, my blog's sidebar didn't use any widget but implement all I want such as an advanced "Recent Comments" module which contains the comment author's avatar and the comment content
在我看来,这很糟糕。小部件适用于特殊项目,不适用于通用目的。至于页眉和页脚中的导航,使用 WP3 的 Meny 功能,提供菜单管理面板。保持简单。周围的小部件只会让人感到困惑。
That's bad form IMO. Widgets are for special items, not for general purpose. As for he Nav in the header and footer, use WP3's Meny functionality, gives an admin panel for menus. Keep it simple. Widgets all around will just make it confusing.