如何使侧边栏不等于WordPress中的内容

发布于 2024-09-02 01:59:44 字数 93 浏览 1 评论 0原文

我希望 WordPress 侧边栏具有特定的高度,而不是等于帖子/页面的内容。例如,只有 400 像素。我正在和阿塔瓦尔帕一起工作。 我必须破解哪个 PHP 中的哪些代码?

I want the WordPress sidebars to have a specific height, NOT equal to the content to the post/page. Just 400px, for example. I'm working with atahualpa.
Which code in which PHP do I have to hack?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

简美 2024-09-09 01:59:44

如果我理解正确的话,您将需要编辑一个相关的 CSS 文件——仅此而已。

确定哪个选择器适合您要限制的容器并添加属性:

height: 400px;
overflow: hidden;

或者如果您希望显示滚动条,则添加overflow: auto; 。

If I understand you correctly, you are going to want to edit a relevant CSS file--nothing more.

Figure out which selector is appropriate for the container you want to limit and add the attributes:

height: 400px;
overflow: hidden;

Or overflow: auto; If you want scrollbars to appear.

萌︼了一个春 2024-09-09 01:59:44

没有 php,请在主题的 css 文件中执行此操作。

No php, do it in your theme's css file.

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