如何更改页面/侧边栏中的列表样式?

发布于 2024-09-02 02:37:42 字数 169 浏览 2 评论 0原文

使用wordpress。

我想更改主页和侧边栏中列表的样式。现在我有一个带有箭头的小圆圈。我宁愿它只是主页中的一个黑色圆圈,并且我希望侧边栏中的文本之前没有任何内容。

我到处寻找代码但找不到它。我认为它会在 sidebar1.php 或 sidebar2.php 文件中,但我找不到任何东西。

Using wordpress.

I would like to the change the style of my lists in the main page as well as the sidebar. Right now I have a little circle with an arrow in it. I'd rather have it be just a black circle in the main page and I'd like there to be nothing before the text in the sidebar.

I've looked everywhere for the code but can't find it. I figured it would be in the sidebar1.php or sidebar2.php files but I haven't been able to find anything.

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

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

发布评论

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

评论(1

孤独患者 2024-09-09 02:37:43

我本身对 WordPress 并不熟悉,所以我会尽力为您指出正确的方向,直到有人可以更具体地回答为止。

这通常在 CSS 中处理。我想有一些外部样式表(例如 Style.css 或 Theme.css)可以为您的应用程序提供样式。这可能位于应用程序的根目录、名为 Styles 或类似内容的文件夹中,或者位于代表您正在使用的主题的子文件夹结构中。

list-style: none; 将完全删除项目符号

list-style-type: square; 将使项目符号成为方形

list-style-image:url("/images /image.gif"); 将使用您提供的图像。

php 文件是否为这些元素指定了样式类?如果没有,则样式表可能正在使用它们的 ID。

如果您可以找到您网站的样式表,请查找或创建相关列表的条目。

例如:ul.sidebar1#sidebar1 ul(类似的内容),然后根据您的喜好修改规则。

I'm not familiar with WordPress per se, so I'll just try to point you in the right direction until someone comes along who can answer more specifically.

This is typically handled in CSS. I'd imagine there's some external stylesheet like Style.css or Theme.css that provides styling for your app. This may be found in the root of the app, a folder named Styles or something similar, or in a subfolder structure representing the theme(s) you are using.

list-style: none; will remove bullets altogether

list-style-type: square; will make bullets square

list-style-image:url("/images/image.gif"); will use an image you provide.

Do the php files specify a style class for these elements? If not, the stylesheet may be using their ID.

If you can find the stylesheet(s) for your site, find or create the entries for the lists in question.

For example: ul.sidebar1 or #sidebar1 ul (something along those lines,) and modify the rules to your liking.

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