# 仿Facebook主题

**URL:** https://meta.discourse.org/t/fakebook-theme/109079
**Category:** Theme
**Tags:** official, fakebook-theme
**Created:** [2019年二月13日 20:18 UTC](https://meta.discourse.org/t/fakebook-theme/109079 "2019-02-13T20:18:45Z")
**Posts on this page:** 1
**Showing post:** 97

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2020年十二月7日 10:50 UTC](https://meta.discourse.org/t/fakebook-theme/109079/97 "2020-12-07T10:50:56Z")

</div>

> [@thegurjyot](#):
>
> 它难道没有像浅色和深色主题那样提供自定义 CSS/HTML 的方式吗？

请查看这里：

> [@Restrict editing of remote themes](https://meta.discourse.org/t/restrict-editing-of-remote-themes/170051):
>
> For quite a while, best practice has been to avoid editing themes installed from a remote Git repository locally on Discourse. Any changes to theme code or uploads get wiped out when updating the theme from the remote repo. In this commit, we’ve removed the ability to locally edit a remote theme and are now enforcing this best practice in Discourse. What happens if I have a remote theme with local changes? Nothing at this point. Your theme stays as is until you remove it or update it from re…

> [@thegurjyot](#):
>
> 我原本希望“内部广告”能在这个主题中显示，但该主题没有提供编写自定义 CSS 的方法。

你其实无需编辑主题的 CSS 来设置内部广告。你应该创建一个新的主题组件，将你的 CSS 放入其中，然后将其添加到该主题中。

> [@House Ad Templates](https://meta.discourse.org/t/house-ad-templates/122004):
>
> House Ad Templates This guide provides templates for creating house ads using the [Official Discourse Ad Plugin](https://meta.discourse.org/t/advertising-plugin-for-discourse-serve-ads-on-your-discourse-forum/33734). warning Important: Disable ad blockers (including those built in to browsers, e.g. Brave) before working with these ad customizations. Before You Start Create a “House Ads” [theme component](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) to store: CSS for your house ads [Uploaded images](https://meta.discourse.org/t/include-images-and-fonts-in-themes-and-components/62459) used in ads Add the component to all active themes where ads will appear Optimize images using [TinyPNG](https://tinypng.com) to reduce file size while maintain…

> [@thegurjyot](#):
>
> 此外，如果我们把分类样式设置为“方框”，那么方框的高度会显得过大。

这是一个潜在的改进点：+1

能否告知你在哪里看到了这个问题？

---

_[View the full topic](https://meta.discourse.org/t/fakebook-theme/109079)._
