将网站图标添加到 bootstrap 已建网站?

add favicons into a bootstrap built website?

这是我的第一个 bootstrap 网站。我已经用普通的 html、css 等制作了 1000 个。这通常是我在每个 html 页面的“”部分中放置的代码。

<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">

这是我的 newest site in bootstrap 现在我的 bootstrap 页面都是 .php 文件。

站点的文件夹由以下文件夹组成:

 1. CSS
 2. Fonts
 3. Images
 4. Less
 5. JS

根驱动器有 38 个 php 页和一个 prepros.cfg 个文件。我进行了大量 google 搜索,但无法找到放置 favivon 代码的方式和位置,以便在您查看教堂网站时看到 favicon。 感谢您的帮助。

我相信如果您使用的是 php,您一定已经将 header 部分导出到单个 php 文件,您通过在每个文件中包含或要求调用该文件 只需将 header 部分复制并粘贴到该文件

如果您刚刚将所有 html 文件重命名为 php 并且没有进行任何更改,我相信它会像以前一样工作