사이트 내 전체검색
wordpress
Asteria Lite 위젯수정하기
로빈아빠
https://cmd.kr/wp/45 URL이 복사되었습니다.

본문

1. 로고 를 수정하기위해

  html 편집가능한 위젯을 추가하라

 

  TinyMCE Advanced​   -> 편집기에 html  사용가능 추가

 

  Black Studio TinyMCE Widget  -> ​위젯에 html  사용가능 

 

2. themes/asteria-lite/asteria-config.php 에서  header_text_id​ 를 추가하라

 

 

 

array(

'id'=>'header_text_id',

'type' => 'editor',

'title' => __('header Logo', 'asteria'), 

'default' => '',

),

array(

'id'=>'footer_text_id',

'type' => 'editor',

'title' => __('Footer Copyright Text', 'asteria'), 

'default' => '',

), 

 

3. 외모 -> Asteria option 에  Footer Copyright Text 위에 header Logo​ 가 생겼다. ​ 

   수정한뒤 저장.

 

4. wp-content/themes/asteria-lite/head4.php 

 

<!--LOGO START-->        

    <div class="logo">

<?php if ( is_home() ) { ?>   

 

<?php if (!empty ($asteria['header_text_id'])) { ?>

<?php $foot = html_entity_decode($asteria['header_text_id']); $foot = stripslashes($foot); echo $foot; ?>

<?php }else{ ?>

<h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h1>

<?php } ?>

 

            

            <?php }else{ ?>

            <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h2>

            <?php } ?>

    </div>

<!--LOGO END-->   

 

추가 하면 상단 로고를 사용할수 있다.

 

 

 

 

 

댓글목록

등록된 댓글이 없습니다.

wordpress
43 (1/1P)

Search

Copyright © Cmd 명령어 18.224.95.38