익명 ·
2023.08.25 ·
조회 10,072
그누보드(gnuboard5)에 폰트어썸(FontAwesome) 최신버전 적용하기
<p>방법 1:</p><p>기본)</p><p>head.sub.php의</p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/font-awesome/css/font-awesome.min.css">', 0);[/code]</p><p>아래에 코드 추가</p><p>[code]add_stylesheet('<link rel="stylesheet" href="<a href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css</a>">', 0);[/code]<br></p><p><br></p><p>테마)</p><p>그누보드가 설치되어있는 루트 디렉토리/theme/테마이름/head.sub.php의<br></p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/font-awesome/css/font-awesome.min.css">', 0);[/code]</p><p>아래에 코드 추가</p><p>[code]add_stylesheet('<link rel="stylesheet" href="<a href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css</a>">', 0);[/code]</p><p>*버전은 변경 시 원하는 폰트 어썸 버전을 <a href="https://fontawesome.com/v6/download" style="font-family:'Helvetica Neue', sans-serif;font-size:13px;background-color:rgb(255,255,255);" rel="nofollow">https://fontawesome.com/v6/download</a>에서 확인 후 6.4.2 부분을 변경하면 됩니다.</p><p><br></p><p><br></p><p>방법 2:</p><p><a href="https://fontawesome.com/v6/download" rel="nofollow">https://fontawesome.com/v6/download</a> 접속 후 최신버전 다운로드,<br></p><p>그누보드가 설치되어있는 루트 디렉토리/js 에 다운로드한 파일 업로드,</p><p>head.sub.php의</p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/font-awesome/css/font-awesome.min.css">', 0);[/code]</p><p>아래에 코드 추가</p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/파일명/css/fontawesome.min.css">', 0);[/code]<br></p><p><br></p><p>예를 들어 현재 가장 최신버전인 <a href="https://use.fontawesome.com/releases/v6.4.2/fontawesome-free-6.4.2-web.zip" style="font-family:'Helvetica Neue', sans-serif;font-size:13px;background-color:rgb(255,255,255);" rel="nofollow">https://use.fontawesome.com/releases/v6.4.2/fontawesome-free-6.4.2-web.zip</a>를 사용한다면,</p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/<span style="color:rgb(51,51,51);font-family:'Helvetica Neue', sans-serif;font-size:13px;background-color:rgb(255,255,255);">fontawesome-free-6.4.2-web</span>/css/fontawesome.min.css">', 0);[/code]</p><p>를 삽입,</p><p>만약 테마를 사용한다면</p><p>그누보드가 설치되어있는 루트 디렉토리/theme/테마이름/head.sub.php의<br></p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/font-awesome/css/font-awesome.min.css">', 0);[/code]</p><p>아래에 코드 추가</p><p>[code]add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/파일명/css/fontawesome.min.css">', 0);[/code]</p>