Change the Like Icon to πŸ‘

:discourse2: Summary Change the Like Icon to :+1: allows you to change the :heart: icon to the :+1: icon – or any other font awesome 5.5 glyph you prefer.
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/new-like-icon
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

:information_source: Since we switched to Font Awesome 5, we built an internal API that delivers a subset of all FA icons to clients – only those icons actively used by Discourse. Site owners can use the svg icon subset site setting to register additional icons for their Discourse instance.

Before

like%20before
like%20before2

After

like
like%20after

If desired,

  • you can change the color of the like icon via /admin/customize/colors/ (look for the love color setting)
  • you can change the text from β€œlike” to a different term via /admin/customize/site_texts/

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-11T12:34:28Z

Check documentPerform check on document:
59개의 μ’‹μ•„μš”

μ•ˆλ…•ν•˜μ„Έμš”,
이 주제λ₯Ό λ‹€μ‹œ κΊΌλ‚΄μ„œ μ£„μ†‘ν•©λ‹ˆλ‹€. ν•˜μ§€λ§Œ 정말 ν˜Όλž€μŠ€λŸ½μŠ΅λ‹ˆλ‹€. λ‹€λ₯Έ λ””μŠ€μ½”urse ν¬λŸΌμ—μ„œ 엄지손가락 μœ„ μ•„μ΄μ½˜μ„ μ‚¬μš©ν•˜λŠ” 것을 보고 μ°Ύμ•„λ³΄κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
μ œκ°€ ν•˜κ³  싢은 것은 엄지손가락 μœ„ μ•„μ΄μ½˜ λŒ€μ‹ , μ—¬κΈ° - Pig Filled Icon (Classic Solid) β€” SVG Download | Font Awesome 의 돼지 μ•„μ΄μ½˜μ„ μ‚¬μš©ν•˜κ³ , 아웃라인 버전은 β€˜μ‹«μ–΄μš”β€™ μ•„μ΄μ½˜μœΌλ‘œ μ‚¬μš©ν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€. 이것이 κ°€λŠ₯ν•œκ°€μš”? Pro μ•„μ΄μ½˜μ΄λ―€λ‘œ, λ‹€μš΄λ‘œλ“œλ₯Ό ν•΄μ•Ό ν•˜λŠ”μ§€, μ•„λ‹ˆλ©΄ 직접 λ§Œλ“€μ–΄ μ»€μŠ€ν…€ μ•„μ΄μ½˜μ΄λ‚˜ 이λͺ¨μ§€λ‘œ μΆ”κ°€ν•œ ν›„ β€˜μ’‹μ•„μš”β€™ μ•„μ΄μ½˜ μ»΄ν¬λ„ŒνŠΈμ— μ μš©ν•΄μ•Ό ν•˜λŠ”μ§€ κΆκΈˆν•©λ‹ˆλ‹€. 그것도 μ–΄λ–»κ²Œ ν•΄μ•Ό ν• μ§€ λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€.
β€˜Change Like Icon’ μ»΄ν¬λ„ŒνŠΈλ₯Ό μ„€μΉ˜ν•˜κ³  μ‚¬μš©λ˜μ§€ μ•ŠλŠ” ν…Œλ§ˆμ—μ„œ ν…ŒμŠ€νŠΈν•΄ λ³΄μ•˜λŠ”λ°, μ˜λ„λŒ€λ‘œ μž‘λ™ν•©λ‹ˆλ‹€. λ¬Έμ œλŠ” ν•΄λ‹Ή μ»΄ν¬λ„ŒνŠΈμ˜ μ„€μ •μ—μ„œ CSSλ₯Ό μˆ˜μ •ν•  수 μžˆλŠ” μ˜μ—­μ΄ 보이지 μ•Šμ•„, 이 μŠ€λ ˆλ“œ μ΄ˆλ°˜μ— μ–ΈκΈ‰λœ 슀크립트λ₯Ό μΆ”κ°€ν•  곳이 μ—†λ‹€λŠ” κ²ƒμž…λ‹ˆλ‹€.
도움 μ£Όμ‹œλ©΄ κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€.

3개의 μ’‹μ•„μš”

@Phlipups처럼 저도 μ•„μ΄μ½˜μ„ κ·Έλƒ₯ 단색 λ§₯μ£Ό μ•„μ΄μ½˜μœΌλ‘œλ§Œ λ°”κΎΈλ €λŠ”λ°, 빈 ν™”λ©΄λ§Œ ν‘œμ‹œλ©λ‹ˆλ‹€.


<script type="text/discourse-plugin" version="0.8">
      api.replaceIcon('d-liked', 'beer');
      api.replaceIcon('d-unliked', 'fa-beer');
      api.replaceIcon('notification.liked', 'fa-beer');
      api.replaceIcon('notification.liked_2', 'fa-beer');
      api.replaceIcon('notification.liked_many', 'fa-beer');
      api.replaceIcon('notification.liked_consolidated', 'fa-beer');      
      api.replaceIcon('heart', 'beer');
</script>

Trisλ‹˜, μ•ˆλ…•ν•˜μ„Έμš”.

admin/site_settings/category/all_results?filter=svg%20icon%20subset의 svg icon subset μ‚¬μ΄νŠΈ 섀정에 beerλ₯Ό μΆ”κ°€ν•΄ λ³΄μ„Έμš”.
그리고 fa-beer λŒ€μ‹  beer만 μ‚¬μš©ν•˜λŠ” κ²ƒμœΌλ‘œ μΆ©λΆ„ν•  것 κ°™μŠ΅λ‹ˆλ‹€. 무료 λ²„μ „μ—λŠ” beer μ•„μ΄μ½˜μ˜ ν…Œλ‘λ¦¬ 버전이 ν•˜λ‚˜λΏμ΄λ―€λ‘œ, 클릭 ν›„ 색상이 λ³€ν•˜λŠ” κ²ƒλ§Œ μžˆμ„ κ²ƒμž…λ‹ˆλ‹€.

3개의 μ’‹μ•„μš”

:star_struck:

정말 ν›Œλ₯­ν•΄μš”, Don! 도움 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€!

1개의 μ’‹μ•„μš”

μ•ˆλ…•ν•˜μ„Έμš”, 이 μ»΄ν¬λ„ŒνŠΈλ₯Ό μ„€μΉ˜ν–ˆλŠ”λ°, 잘 λ™μž‘ν•˜λ©° κ²Œμ‹œλ¬Ό λͺ©λ‘μ˜ ν•˜νŠΈ μ•„μ΄μ½˜λ„ μ„±κ³΅μ μœΌλ‘œ λŒ€μ²΄λ˜μ—ˆμŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ μ‚¬μš©μžκ°€ λ°›λŠ” 이메일 μ•Œλ¦Όμ—λŠ” μ—¬μ „νžˆ 이전 ν•˜νŠΈ μ•„μ΄μ½˜μ΄ ν‘œμ‹œλ˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
무엇을 λ†“μΉ˜κ³  μžˆλŠ” κ±ΈκΉŒμš”? 이메일 ν…œν”Œλ¦Ώλ„ μˆ˜μ •ν•΄μ•Ό ν•˜λ‚˜μš”?
이 λ©‹μ§„ μ»΄ν¬λ„ŒνŠΈλ₯Ό κ°œλ°œν•΄ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€.

4개의 μ’‹μ•„μš”

μ €μž₯μ†Œλ₯Ό μ’€ 더 λͺ…ν™•ν•˜κ²Œ λ§Œλ“€κΈ° μœ„ν•΄ PR을 μ˜¬λ ΈμŠ΅λ‹ˆλ‹€ (λ‚΄ μΈμŠ€ν„΄μŠ€μ—μ„œ TCλ₯Ό 식별할 수 μ—†μ–΄μ„œ):

μ €μž₯μ†Œ 링크λ₯Ό new-like-iconμ—μ„œ 더 λͺ…ν™•ν•œ μ΄λ¦„μœΌλ‘œ λ³€κ²½ν•΄μ•Ό ν• μ§€ κΆκΈˆν•©λ‹ˆλ‹€. λ¬Όλ‘  κ·Έλ ‡κ²Œ ν•˜λ©΄ ν˜Όλž€μ΄ 생길 ν…Œλ‹ˆ, μ•„λ§ˆ μ•ˆ λ˜λŠ” 게 μ’‹κ² μ£ !