블로그스팟에서 라디오 버튼이 안보일때 해결책

블로그스팟(Blogger) 글쓰기 편집기에서 HTML 코드를 입력했는데 본문에서 보이지 않는 문제는 여러 가지 이유로 발생할 수 있습니다. 가장 가능성이 높은 원인부터 순서대로 확인해 보세요.

블로그스팟에서 라디오 버튼이 안보일때 해결책


📌 1. 글쓰기 모드 확인 (HTML 보기 vs 편지 쓰기)

이것이 가장 흔한 실수입니다. 블로그스팟 글쓰기 편집기에는 두 가지 모드가 있습니다.

  • 편지 쓰기 (Compose view): 일반적인 워드프로세서처럼 글을 쓰는 모드입니다. 여기에 HTML 코드를 그대로 붙여넣으면, 코드가 '실행'되는 것이 아니라 <input type="radio">라는 '텍스트'가 그대로 보이거나 아예 사라집니다.

  • HTML 보기 (HTML view): 실제 HTML 코드를 직접 편집하는 모드입니다.

해결책:

  1. 글쓰기 화면 왼쪽 상단의 아이콘 ( < > 또는 연필 모양)을 클릭합니다.
  2. 'HTML 보기' 모드로 전환합니다.
  3. 이곳에 라디오 버튼 HTML 코드를 붙여넣기 하거나 입력해야 합니다.


💻 2. 블로그스팟의 HTML 필터링 (보안 정책)

블로그스팟은 보안상의 이유로 특정 HTML 태그나 속성을 자동으로 제거하거나 변경할 수 있습니다. 특히 폼(<form>) 태그나 인터랙티브 요소(<input>, <script>)가 포함된 코드는 종종 제한됩니다.

해결책:

  • 단순한 코드 사용: 우선 가장 기본적인 형태의 라디오 버튼 코드만 넣어보세요.

    <input type="radio" id="option1" name="group1" value="A">
    <label for="option1">옵션 A</label><br>
    <input type="radio" id="option2" name="group1" value="B">
    <label for="option2">옵션 B</label>
    
  • <form> 태그 확인: 만약 <form> 태그로 감싸서 넣었다면, 블로그스팟이 이 태그를 제거했을 수 있습니다. 라디오 버튼 자체는 <form> 태그 없이도 표시될 수 있습니다. (물론, 데이터를 전송하는 기능은 작동하지 않습니다.)

  • 외부 서비스 이용: 만약 설문조사 등 데이터 수집이 목적이라면, 블로그스팟 본문에 직접 코드를 넣는 것보다 'Google 설문지(Forms)' 등을 만들어 링크를 걸거나 삽입(embed)하는 것이 훨씬 안정적입니다.


🎨 3. 블로그 테마(CSS)와의 충돌

HTML 코드는 올바르게 들어갔지만, 블로그에 적용된 테마의 CSS 스타일 때문에 버튼이 보이지 않게 숨겨져 있을 수 있습니다.

예를 들어, 테마가 라디오 버튼을 예쁘게 꾸미기 위해 기본 버튼을 숨기고 다른 이미지로 대체하는 경우(display: none; 또는 visibility: hidden;)가 있습니다.

해결책 (조금 고급):

  1. 문제가 발생하는 블로그 글을 엽니다.
  2. 버튼이 있어야 할 위치에서 마우스 오른쪽 클릭'검사' 또는 '요소 검사' (브라우저의 개발자 도구)를 선택합니다.
  3. 개발자 도구의 'Elements' 탭에서 내가 입력한 <input type="radio"> 코드가 실제로 존재하는지 확인합니다.
  4. 코드가 존재한다면, 해당 요소를 클릭하고 'Styles' 탭에서 display: none;이나 opacity: 0;, visibility: hidden; 같은 CSS 속성이 적용되어 있는지 확인합니다.


🔍 4. HTML 코드 자체의 문법 오류

입력한 HTML 코드에 오타나 문법적 오류가 있을 수 있습니다. (예: 따옴표가 빠졌거나, 꺾쇠 괄호(< >)가 닫히지 않은 경우)

해결책:

  • 입력한 코드를 다시 한번 꼼꼼히 확인해 보세요.

  • 위 2번 항목에 있는 기본 예제 코드를 복사해서 넣어보고, 그것이 보이는지 먼저 테스트해 보세요.


요약: 대부분의 경우 1번(HTML 보기 모드에서 입력) 또는 **2번(블로그스팟 필터링)**이 원인입니다. 글쓰기 모드를 'HTML 보기'로 변경한 후, 가장 기본적인 라디오 버튼 코드를 넣어 테스트해 보시는 것을 권장합니다.

 👾5. 그런데, 이 방법들이 안 통한다면 

블로그 스팟에서 해결책이 없어 보여서 라디오 버튼을 일반 버튼처럼 변환해서 사용해보기로 하였다.라디오 버튼을 구현하는 HTML 코드를 블로그스팟 편집기의 'HTML 보기' 모드에 아래와 같이 입력하면,


<div style="background-color: #fcf8e3; padding: 20px; border-radius: 8px; margin: 25px 0; color: #2c3e50;">
  <h3 style="font-size: 20px; color: #8e44ad; margin-top: 0; margin-bottom: 15px; text-align: center;"><strong>나의 성공적인 재택근무 전환 준비도 자가 진단 테스트</strong></h3>
  <p style="margin-bottom: 15px; font-size: 15px;">아래 질문에 솔직하게 답변하고, 나의 재택근무 준비도를 확인해 보세요!</p>

  <div style="margin-bottom: 15px;">
    <p style="margin-bottom: 5px; font-weight: 600; font-size: 15px;">1. 육아휴직 중에도 업무 관련 최신 트렌드를 꾸준히 학습하고 있다.</p>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q1" value="5"> 그렇다</label>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q1" value="3"> 보통이다</label>
    <label style="font-size: 14px;"><input type="radio" name="q1" value="1"> 아니다</label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="margin-bottom: 5px; font-weight: 600; font-size: 15px;">2. 집 안에 업무에 집중할 수 있는 독립적인 공간이 마련되어 있다.</p>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q2" value="5"> 그렇다</label>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q2" value="3"> 보통이다</label>
    <label style="font-size: 14px;"><input type="radio" name="q2" value="1"> 아니다</label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="margin-bottom: 5px; font-weight: 600; font-size: 15px;">3. 효율적인 시간 관리 및 업무 우선순위 설정 계획을 가지고 있다.</p>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q3" value="5"> 그렇다</label>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q3" value="3"> 보통이다</label>
    <label style="font-size: 14px;"><input type="radio" name="q3" value="1"> 아니다</label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="margin-bottom: 5px; font-weight: 600; font-size: 15px;">4. 비대면 업무 시 팀원들과의 원활한 소통 방법에 대해 고민해 보았다.</p>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q4" value="5"> 그렇다</label>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q4" value="3"> 보통이다</label>
    <label style="font-size: 14px;"><input type="radio" name="q4" value="1"> 아니다</label>
  </div>

  <div style="margin-bottom: 20px;">
    <p style="margin-bottom: 5px; font-weight: 600; font-size: 15px;">5. 회사의 재택근무 정책 및 관련 제도(육아기 근로시간 단축 등)를 정확히 파악하고 있다.</p>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q5" value="5"> 그렇다</label>
    <label style="margin-right: 15px; font-size: 14px;"><input type="radio" name="q5" value="3"> 보통이다</label>
    <label style="font-size: 14px;"><input type="radio" name="q5" value="1"> 아니다</label>
  </div>

  <button onclick="calculateScore()" style="background-color: #8e44ad; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; display: block; margin: 0 auto;" onmouseover="this.style.backgroundColor='#6200ea'" onmouseout="this.style.backgroundColor='#8e44ad'">결과 확인하기</button>

  <div id="result" style="margin-top: 20px; padding: 15px; border: 1px dashed #ce93d8; border-radius: 5px; background-color: #fdf6e3; font-weight: 600; text-align: center; display: none; font-size: 15px;"></div>

  <script>
    function calculateScore() {
      let score = 0;
      const q1 = document.querySelector('input[name="q1"]:checked');
      const q2 = document.querySelector('input[name="q2"]:checked');
      const q3 = document.querySelector('input[name="q3"]:checked');
      const q4 = document.querySelector('input[name="q4"]:checked');
      const q5 = document.querySelector('input[name="q5"]:checked');

      if (!q1 || !q2 || !q3 || !q4 || !q5) {
        alert('모든 질문에 답변해주세요.');
        return;
      }

      score += parseInt(q1.value);
      score += parseInt(q2.value);
      score += parseInt(q3.value);
      score += parseInt(q4.value);
      score += parseInt(q5.value);

      let message = '';
      if (score >= 20) {
        message = '⭐ <strong>매우 높은 준비도!</strong> 당신은 성공적인 재택근무 전환을 위한 준비를 거의 완벽하게 마쳤습니다. 자신감을 가지고 도전하세요!';
      } else if (score >= 15) {
        message = '👍 <strong>양호한 준비도!</strong> 재택근무 전환을 위한 좋은 기반을 가지고 있습니다. 몇 가지 보완점을 찾아 더욱 견고하게 준비해 보세요.';
      } else if (score >= 10) {
        message = '🤔 <strong>개선이 필요한 준비도.</strong> 재택근무 전환을 위해서는 추가적인 준비와 노력이 필요합니다. 이 글의 전략들을 참고하여 계획을 세워보세요.';
      } else {
        message = '🚩 <strong>아직 부족한 준비도.</strong> 재택근무 전환은 신중한 접근이 필요합니다. 각 단계별 전략을 꼼꼼히 검토하고 구체적인 계획을 수립해야 합니다.';
      }

      const resultDiv = document.getElementById('result');
      resultDiv.innerHTML = message;
      resultDiv.style.display = 'block';
    }
  </script>
</div>

아래 이미지처럼 보여야 하는데,
 
블로그스팟에서 라디오 버튼이 안보일때 해결책
 
위처럼 보이지않고, 아래와같이 


블로그스팟에서 라디오 버튼이 안보일때 해결책

라디오 버튼이 사라지고 안보입니다.
그래서, 라디오 버튼을 CSS 코드를 이용해서 button처럼 사용는 방법을 구현 해 보았습니다.

아래 코드를 블로그스팟 편집기 'HTML 보기' 모드에 입력하면 ,


<style>
    .test_obj input[type="radio"] {
        display: none;
    }
 
    .test_obj input[type="radio"] + span {
        display: inline-block;
        padding: 15px 10px;
        border: 1px solid #dfdfdf;
        background-color: #ffffff;
        text-align: center;
        cursor: pointer;
    }
 
    .test_obj input[type="radio"]:checked + span {
        background-color: #113a6b;
        color: #ffffff;
    }
</style>

<div style="background-color: #fcf8e3; border-radius: 8px; color: #2c3e50; margin: 25px 0px; padding: 20px;">
  <h3 style="color: #8e44ad; font-size: 20px; margin-bottom: 15px; margin-top: 0px; text-align: center;"><strong>나의 성공적인 재택근무 전환 준비도 자가 진단 테스트</strong></h3>
  <p style="font-size: 15px; margin-bottom: 15px;">아래 질문에 솔직하게 답변하고, 나의 재택근무 준비도를 확인해 보세요!</p>

  <div style="margin-bottom: 15px;">
    <p style="font-size: 15px; font-weight: 600; margin-bottom: 5px;">1. 육아휴직 중에도 업무 관련 최신 트렌드를 꾸준히 학습하고 있다.</p>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q1" type="radio" value="5" /> <span>그렇다</span></label>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q1" type="radio" value="3" /> <span>보통이다</span></label>
    <label class="test_obj" style="font-size: 14px;"><input name="q1" type="radio" value="1" />  <span>아니다</span></label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="font-size: 15px; font-weight: 600; margin-bottom: 5px;">2. 집 안에 업무에 집중할 수 있는 독립적인 공간이 마련되어 있다.</p>
   <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q2" type="radio" value="5" /> <span>그렇다</span></label>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q2" type="radio" value="3" /> <span>보통이다</span></label>
    <label class="test_obj" style="font-size: 14px;"><input name="q2" type="radio" value="1" />  <span>아니다</span></label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="font-size: 15px; font-weight: 600; margin-bottom: 5px;">3. 효율적인 시간 관리 및 업무 우선순위 설정 계획을 가지고 있다.</p>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q3" type="radio" value="5" /> <span>그렇다</span></label>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q3" type="radio" value="3" /> <span>보통이다</span></label>
    <label class="test_obj" style="font-size: 14px;"><input name="q3" type="radio" value="1" />  <span>아니다</span></label>
  </div>

  <div style="margin-bottom: 15px;">
    <p style="font-size: 15px; font-weight: 600; margin-bottom: 5px;">4. 비대면 업무 시 팀원들과의 원활한 소통 방법에 대해 고민해 보았다.</p>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q4" type="radio" value="5" /> <span>그렇다</span></label>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q4" type="radio" value="3" /> <span>보통이다</span></label>
    <label class="test_obj" style="font-size: 14px;"><input name="q4" type="radio" value="1" />  <span>아니다</span></label>
  </div>

  <div style="margin-bottom: 20px;">
    <p style="font-size: 15px; font-weight: 600; margin-bottom: 5px;">5. 회사의 재택근무 정책 및 관련 제도(육아기 근로시간 단축 등)를 정확히 파악하고 있다.</p>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q5" type="radio" value="5" /> <span>그렇다</span></label>
    <label class="test_obj" style="font-size: 14px; margin-right: 15px;"><input name="q5" type="radio" value="3" /> <span>보통이다</span></label>
    <label class="test_obj" style="font-size: 14px;"><input name="q5" type="radio" value="1" />  <span>아니다</span></label>
  </div>

  <button onclick="calculateScore()" onmouseout="this.style.backgroundColor='#8e44ad'" onmouseover="this.style.backgroundColor='#6200ea'" style="background-color: #8e44ad; border-radius: 5px; border: none; color: white; cursor: pointer; display: block; margin: 0px auto; padding: 10px 15px; transition: background-color 0.3s;">결과 확인하기</button>

  <div id="result" style="background-color: #fdf6e3; border-radius: 5px; border: 1px dashed rgb(206, 147, 216); display: none; font-size: 15px; font-weight: 600; margin-top: 20px; padding: 15px; text-align: center;"></div>

  <script>
    function calculateScore() {
      let score = 0;
      const q1 = document.querySelector('input[name="q1"]:checked');
      const q2 = document.querySelector('input[name="q2"]:checked');
      const q3 = document.querySelector('input[name="q3"]:checked');
      const q4 = document.querySelector('input[name="q4"]:checked');
      const q5 = document.querySelector('input[name="q5"]:checked');

      if (!q1 || !q2 || !q3 || !q4 || !q5) {
        alert('모든 질문에 답변해주세요.');
        return;
      }

      score += parseInt(q1.value);
      score += parseInt(q2.value);
      score += parseInt(q3.value);
      score += parseInt(q4.value);
      score += parseInt(q5.value);

      let message = '';
      if (score >= 20) {
        message = '⭐ <strong>매우 높은 준비도!</strong> 당신은 성공적인 재택근무 전환을 위한 준비를 거의 완벽하게 마쳤습니다. 자신감을 가지고 도전하세요!';
      } else if (score >= 15) {
        message = '👍 <strong>양호한 준비도!</strong> 재택근무 전환을 위한 좋은 기반을 가지고 있습니다. 몇 가지 보완점을 찾아 더욱 견고하게 준비해 보세요.';
      } else if (score >= 10) {
        message = '🤔 <strong>개선이 필요한 준비도.</strong> 재택근무 전환을 위해서는 추가적인 준비와 노력이 필요합니다. 이 글의 전략들을 참고하여 계획을 세워보세요.';
      } else {
        message = '🚩 <strong>아직 부족한 준비도.</strong> 재택근무 전환은 신중한 접근이 필요합니다. 각 단계별 전략을 꼼꼼히 검토하고 구체적인 계획을 수립해야 합니다.';
      }

      const resultDiv = document.getElementById('result');
      resultDiv.innerHTML = message;
      resultDiv.style.display = 'block';
    }
  </script>
</div>


아래처럼 라디오 버튼이 일반 버튼처럼 변환이 됩니다. 물론 라디오 버튼처럼 선택 가능하고 정상 작동합니다.

 나의 성공적인 재택근무 전환 준비도 자가 진단 테스트

아래 질문에 솔직하게 답변하고, 나의 재택근무 준비도를 확인해 보세요!

1. 육아휴직 중에도 업무 관련 최신 트렌드를 꾸준히 학습하고 있다.

2. 집 안에 업무에 집중할 수 있는 독립적인 공간이 마련되어 있다.

3. 효율적인 시간 관리 및 업무 우선순위 설정 계획을 가지고 있다.

4. 비대면 업무 시 팀원들과의 원활한 소통 방법에 대해 고민해 보았다.

5. 회사의 재택근무 정책 및 관련 제도(육아기 근로시간 단축 등)를 정확히 파악하고 있다.

이처럼 라디오 버튼과 첵크박스가 블로그스팟에서 문제를 야기하는 것 때문에 불편한 점이 많았는데, 변칙적이나마 이렇게 해서 블로그스팟에 글쓰기를  해결하고 있습니다. 

자료를 찾다보니까 사용중인 블록의 테마에 문제가 있다고해서 아래처럼 문제를 해결해봤으나 실패했습니다.
---------------------------------------------------------------------------------------------------------------------

그렇다면 문제는 HTML 코드 자체가 아니라, 현재 사용 중인 블로그 테마(스킨)의 CSS 스타일 때문일 확률이 99%입니다.

🧐 원인

현재 사용 중인 테마가 디자인을 위해 기본 라디오 버튼(<input type="radio">)을 일부러 숨기고(예: display: none;), 그 대신 예쁜 맞춤형 이미지로 대체하도록 설정되어 있을 수 있습니다.

HTML 코드만 넣고 관련 CSS 스타일을 적용하지 않아서, 그냥 '숨겨진' 상태로만 남아있는 것입니다.

🛠️ 해결 방법

이 문제를 해결하려면, 테마의 CSS를 직접 수정하여 라디오 버튼을 강제로 다시 보이게 만들어야 합니다.

  • 블로그스팟 관리자 화면에서 [테마] 메뉴로 이동합니다.
  • [맞춤설정] 버튼을 클릭합니다.
  • [고급] 메뉴를 클릭한 뒤, 스크롤을 내려 [CSS 추가] (또는 'CSS 맞춤설정') 항목을 찾습니다.
  • 오른쪽 입력란에 아래 코드를 그대로 복사하여 붙여넣습니다.


/* 라디오 버튼 강제로 보이게 하기 */
input[type="radio"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  margin: 5px !important; /* 잘 보이도록 여백 추가 */
}

  • 오른쪽 하단의 [저장] 아이콘을 클릭합니다.
  • 블로그 글로 돌아가 새로고침(F5)하여 라디오 버튼이 보이는지 확인합니다.


이 CSS 코드는 테마가 숨겨놓은 라디오 버튼을 !important 속성을 이용해 강제로 다시 표시하는 코드입니다.

그런데 역시 안되는군요
좋은 아이디어 있으면 좀 알려주세요.
다음 이전

POST ADS1