TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you maintain a WordPress site's CSS when it gets bad?

1 点作者 briantoknowyou超过 1 年前
Client has a ton of plugins, such as Elementor with ElementsKit, WPForms, and a custom theme.<p>For one input field on a form, there are around 6 to 12 different CSS files supplying rules including inline styles. The sane answer is to convince the client to migrate to another solution or recreate, but assuming this is like your spouse&#x27;s beloved pet that you MUST operate on or else it will die, how do you begin to make sense of it all?

1 comment

stefanos82超过 1 年前
Coincidentally, yesterday I had a chat with a friend that told me this very same case as yours.<p>His solution was<p><pre><code> - to replicate the whole layout of existing theme from scratch - produce the exact functional behavior of previous theme - on finish, he will simply going to get rid of the unnecessary plugins </code></pre> It can be a bit intimidating, but if you know what you are doing, it will be worth the effort.