让整个主题小部件化是个好主意吗?

发布于 2025-01-02 14:45:31 字数 88 浏览 1 评论 0原文

我主要看到过在侧边栏或多列布局中使用小部件的网站。但是,我想知道如果我们可以在每个块(如页眉、主要内容块、页脚等)中使用小部件会怎么样。这是一个好主意还是坏主意?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风吹过旳痕迹 2025-01-09 14:45:31

这是一个坏主意。 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

命硬 2025-01-09 14:45:31

在我看来,这很糟糕。小部件适用于特殊项目,不适用于通用目的。至于页眉和页脚中的导航,使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文