วิธีเพิ่ม Favicon ให้เว็บไซต์ของคุณ (แท็ก HTML)
- แตกไฟล์
- อัปโหลดไฟล์
- วางแท็ก
Once you have made a favicon, set it up on your site. The ZIP from Make a Favicon (Site Icon) contains html-tags.txt with the tags to paste.
ขั้นตอน
- Choose an image with "Choose images" and make it with "Make favicon".
- Save with "Save ZIP" and unzip it.
- Upload the files inside (PNGs and favicon.ico) to your site's folder (the public location).
- Open html-tags.txt and copy the tags inside.
- Paste them into the of each page of your site.
- Open the site and check that the icon appears in the tab.
Example of the tags
html-tags.txt contains things like:
- A tag specifying the icon
- A tag for the phone home screen
There is a line for each size.
Where to put the files
Most commonly in the site's top (root) folder. Put them there and the path can be written like "/favicon.ico".
Checking paths
Check that the file location (href) in the tags matches where you actually placed them. If not, it will not appear.
Checking after setup
- Open the site.
- See whether the icon appears at the edge of the tab.
- If not, reload the page.
- If it still does not appear, the browser cache may be the cause. Explained in a separate guide.
If you use a blog service
On services such as WordPress, you may only need to upload the image in the settings screen. Explained in a separate guide.
ตัวอย่าง
Placed favicon.ico and the PNGs in the root of a self-made site and pasted the tags from html-tags.txt into each page's
.Common stumbling blocks
- Pasted the tags but it does not appear: wrong path, or cache.
- Appears only on some pages: the tags are needed in the of every page.
- The phone icon is different: check the apple-touch-icon tag.
Frequently asked questions
Can I set it up without knowing HTML?
With a blog service, you often just choose the image in the settings screen.
สรุป
Place the files and paste the tags into the
. Check that the paths match. ใช้ “สร้างไอคอนเว็บไซต์ (Favicon)” (ฟรี)เครื่องมือที่ใช้คู่กันได้ดี
- ครอบตัดและหมุนรูปภาพ: ครอบตัดรูปภาพตามพื้นที่หรืออัตราส่วนที่ต้องการ และหมุนได้
- ปรับขนาดรูปภาพตามพิกเซล: ปรับขนาดรูปภาพตามความกว้าง ความสูง หรือเปอร์เซ็นต์
- แปลงรูปแบบรูปภาพ (JPG, PNG, WebP): แปลงรูปภาพเป็น JPG, PNG หรือ WebP ได้หลายไฟล์พร้อมกัน
หากคู่มือนี้เป็นประโยชน์ ทิปเล็ก ๆ น้อย ๆ จะเป็นกำลังใจอย่างมาก
ส่งทิป (¥300)ส่งของขวัญ (Amazon wishlist)