Home 게시판 커뮤니티 Q&A css 좀 봐주세요..

5개 답변, 3 voices Last updated by Avatar of helloworld1987helloworld1987 12 years, 9 months 전
  • Avatar of sdh1986sdh1986
    Participant
    @sdh1986
    #4810

    테마에 들어있는 css 내용입니다.

    테마 옵션에서 글씨나 이미지를 선택하여 헤드부분에 들어갈 내용을 정할수 있게 되어있습니다.

    저는 이미지부분을 선택하여 헤드에 이미지가 뜨게 하려나

    현재

    etteda.com에 가보시면 아시겠지만 이텔릭체로 etteda라고 만 쓰여있습니다…

    이부분을 관장하는 head.css.php 소스를 만져보았으나 이상해지기만 하더군요…

    그래서 원본 자체를 보여드립니다.. 이상한점이 있는지좀 봐주세요..ㅜ

    <?php
    $sitename = WPClassic_Theme_Option::get(‘sitename_mode’,’t’);
    ?>
    <?php if (‘t’ == $sitename) : ?>
    div#header .title a {
    display: block;
    margin: 0;
    font: bold 30px/55px ‘Bebas’, sans-serif;
    outline: none;
    color: #609dc1;
    text-transform: uppercase;
    text-decoration: none;
    }
    <?php else : ?>
    <?php
    $image = WPClassic_Theme_Option::get(‘sitename_logo_url’,’t’);
    $val = getimagesize($image);
    ?>
    div#header .title a {
    display: block;
    margin: 0;
    padding: 0;
    width: <?php echo $val[0]; ?>px;
    height: <?php echo $val[1]; ?>px;
    font: normal 48px/44px ‘Bebas’, sans-serif;
    text-shadow: #fff 0 0 1px;
    color: #609dc1;
    text-transform: uppercase;
    text-decoration: none;
    text-indent: -999999px;
    background: transparent url(‘<?php echo $image; ?>’) left top no-repeat;
    outline: none;
    }
    <?php endif; ?>
    div#header .description {
    display: none;
    }

    Avatar of DevssayDevssay
    Keymaster
    @세이군
    #4811

    CSS 파일만 분석하면 오류가 없어 보입니다.
    하지만 브라우저 소스보기를 통해 확인해본 결과
    header.css.php 에서 오류가 하나 보입니다.
    <?php
    $sitename = WPClassic_Theme_Option::get(‘sitename_mode’,’t’);
    ?>
    WPClassic_Theme_Option 클래스를 찾을 수 없다고 오류를 내고 있습니다.
    실제 오류 출력화면
    <b>Fatal error</b>: Class ‘WPClassic_Theme_Option’ not found in <b>/host/home3/etteda/html/wordpress/wp-content/themes/quiet-quinn2/css/header.css.php</b> on line <b>31</b>
    이부분에 대한 내용을 수정해야 합니다.

    Avatar of sdh1986sdh1986
    Participant
    @sdh1986
    #4812

    옹ㅎ 그렇군요 감사합니다 !

    Avatar of sdh1986sdh1986
    Participant
    @sdh1986
    #4813

    그런데 어떻게 고쳐야 될까요ㅠㅜㅜ

    Avatar of sdh1986sdh1986
    Participant
    @sdh1986
    #4814

    이게 테마 수정하는 옵션페이지 css화면인데요..

    도저히 모르겠네요…ㅜㅜㅜㅜㅜㅜ

    두가지 모드가 있어요, 그냥 텍스트로만 뜨는 모드랑

    로고 url입력하면 로고가 뜨게 해준다는 모드 두가지가 있는데,

    저는 로고를 뜨게하려고 하거든요,

    그래서 ftp에 이미지올리고 그 주소를 입력했는데

    계속해서 안되네요…도저히 뭐가 문제인지 모르겠어요 ㅜㅜㅜ

    아마 이부분에서 url입력할수있게 되어있어서 이부분에서 가져다 쓰지않을까합니다..ㅜㅜㅜ

    알려주세요. 뒷목잡고 쓰러지게 생겼어요 ㅜㅜㅜ

    new WPClassic_Theme_Input(
    ‘sitename_mode’,
    __(‘Site Name Mode’, WPCL_THEME_SLUG),
    __(‘What do you want to do in the site name? If you have a personal or company logo, choose the Image mode, otherwise, go for the Plain Text mode.’, WPCL_THEME_SLUG),
    array(‘type’ => ‘dropdown’, ‘choices’ => array(
    ‘t’ => __(‘Plain Text’, WPCL_THEME_SLUG),
    ‘i’ => __(‘Image’, WPCL_THEME_SLUG)
    ))
    ),
    new WPClassic_Theme_Input(
    ‘sitename_logo_url’,
    __(‘Logo URL’, WPCL_THEME_SLUG),
    __(‘The URL where your logo is located. Must start with http:// or https://. The height of the image should be 44 pixels.’, WPCL_THEME_SLUG),
    array(‘type’ => ‘textfield’, ‘width’ => 500)
    ),

    아 죽겠네요 ㅜㅜ

    Avatar of helloworld1987helloworld1987
    Participant
    @subwaymatch
    #4815

    직접 템플릿 파일들을 모두 보지 않고선 잘 모르겠네요.

    다만 편법으로 해결하는 방법이 있다면 ettada.com 이 사용하는 테마 폴더 (예를 들어 /wp-content/themes/ettada) 에 로고 이미지를 올리고 header 파일의 로고가 들어가는 부분을 직접 수정하시는 겁니다.

    예를 들어 테마 폴더의 images/ 안에 logo.jpg 를 업로드하셨다면,

    <img src=”<?php bloginfo(‘template_url’); ?>/images/logo.png” alt=”ETTEDA” />

    와 같이 추가하시면 이미지가 뜰겁니다. 혹시 잘 이해가 안되신다면 말씀해 주세요.

6 글 보임 - 1에서 6 까지 (총 6 중에서)
  • 답변은 로그인 후 가능합니다.