질문과 답변

2026.03.25 22:23

질문 하나만 더 드리겠습니다~^^;;;

아이콘버튼을 피그마에서 만들어서 위젯으로 등록하려 했는데....
등록하면 화면이 다 사라지네요.
좀전에 질문드렸던 화면이 날라간것도 아래코드를 입력해서 인데요...
일반 html에서는 정상적으로 나오는데...
widget.php로 이름변경후 위젯등록하면 등록은 되는데 화면이 안나오네요...
제가 워낙에 초보라서..나름 해보는데 공부가 모자라서 잘 모르겠네요..
염치불구하고 고수님들 가르침 부탁드리겠습니다.

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>레이아웃 선택 버튼</title>
    <link rel="stylesheet" href="gnuboard-button.css">
</head>
<body>
    <div class="container">
        <div class="button-group">
            <button class="btn-layout" data-id="0">
                <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
                </svg>
                <span class="text">New Basic 레이아웃</span>
                <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="m9 18 6-6-6-6"/>
                </svg>
            </button>

            <button class="btn-layout" data-id="1">
                <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
                </svg>
                <span class="text">매거진 레이아웃</span>
                <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="m9 18 6-6-6-6"/>
                </svg>
            </button>

            <button class="btn-layout" data-id="2">
                <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z"/>
                </svg>
                <span class="text">더 많은 리필터 자료</span>
                <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="m9 18 6-6-6-6"/>
                </svg>
            </button>
        </div>
    </div>

    <script src="gnuboard-button.js"></script>
</body>
</html>
  • 공유링크 복사
    미니홈 쪽지 구독하기
    구독하고 알림받기

    댓글목록

    profile_image
    리빌더미니홈 1:1 대화하기  4일 전

    네 확인하고 추가회신드리겠습니다!

    2026-03-25 22:26

    profile_image
    no_profile 둘래아빠미니홈 1:1 대화하기  4일 전

    고맙습니다.
    이거때문에 며칠째 헤매고 있는중이었거든요...
    빌더 제작자님께서 이렇게 몸소 신경써주시다니 너무너무 감사합니다.

    2026-03-25 22:29

    profile_image
    리빌더미니홈 1:1 대화하기  4일 전

    2.2.6 에서 패치가될 내용이긴한데, js 때문인것같습니다.

    코드는 우선 아래와같이 <html><body>를 제거하시고

    <div class="container">
            <div class="button-group">
                <button class="btn-layout" data-id="0">
                    <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
                    </svg>
                    <span class="text">New Basic 레이아웃</span>
                    <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="m9 18 6-6-6-6"/>
                    </svg>
                </button>

                <button class="btn-layout" data-id="1">
                    <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
                    </svg>
                    <span class="text">매거진 레이아웃</span>
                    <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="m9 18 6-6-6-6"/>
                    </svg>
                </button>

                <button class="btn-layout" data-id="2">
                    <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z"/>
                    </svg>
                    <span class="text">더 많은 리필터 자료</span>
                    <svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="m9 18 6-6-6-6"/>
                    </svg>
                </button>
            </div>
        </div>

    이렇게만 넣으시고,
    아래쪽에 js부분 <script src="gnuboard-button.js"></script> 을
    theme/테마폴더/tail.php 에 넣으시고

    경로를 <script src="<?php echo G5_THEME_URL ?>/js/gnuboard-button.js"></script>
    이렇게 설정하신 후에
    js파일을 theme/테마폴더/js/ 경로에 넣어보세요!

    안되시면 다시 댓글주시면 주신코드로 테스트후에 회신드리겠습니다.
    감사합니다.

    2026-03-25 22:30

    profile_image
    리빌더미니홈 1:1 대화하기  4일 전

    모듈을 ajax로 로드를하고있어서 js 가 일반적인 방식으로 사용이 안되서 그렇습니다.
    2.2.6 버전에서 패치될 예정입니다!

    2026-03-25 22:33

    profile_image
    no_profile 둘래아빠미니홈 1:1 대화하기  4일 전

    가르침 감사합니다...조만간에 2.2.6버전 나오면 그때 다시한번 해봐야겠네요..
    소중한 시간내서 자세히 상담해준점 거듭 감사드립니다.
    행복하고 복된 일상되세요~^^

    2026-03-25 22:42

    profile_image
    리빌더미니홈 1:1 대화하기  4일 전

    네 감사합니다.
    2.2.6 버전에서는 js를 기존 사용하던 방식으로 사용할 수 있게 됩니다!
    편안한 하루 되세요.

    2026-03-25 22:43

오늘 출석 안하셨어요! 출석체크 하러가기