2. 프로젝트 진행기1 2021-05-10 네비게이션 1. 오른쪽 네비게이션 내용 추가 진짜 너무 귀엽다.. 2. 카테고리 네비게이션 current 값 변경 if ( window.location.pathname.indexOf($(this).find("a").attr("href")) != -1 ){ $(this).addClass("current"); } 이 테마의 기본 코드에서는 이런식으로 작성되어 있었는데, 이렇게 하니까 다른 카테고리를 클릭하면 홈 버튼은 항상 밑줄이 그어져 있다. if ( window.location.pathname.indexOf($(this).find("a").attr("href")) != -1 ){ $(this).addClass("current"); if ($(this).find("a").attr("href") === '/') { c.. 2021. 5. 10. 이전 1 다음