「Xeory-EXTENSION」の不要3項目を削除する方法
「Xeory-EXTENSION」の会社概要、お問い合わせを消去したので、忘れないように自分のためのメモ。
ついでに、サービス紹介を消す方法も合わせて、「Xeory-EXTENSION」の不要3項目を削除する方法をメモしときます。
「外観」→「テーマの編集」で「front-page.php」から不要な項目を表示しないように変更します。のちに「サービス紹介」などの項目が必要になったら、追加してあげればいいだけですね。
サービス紹介を消去
「サービス紹介」を表示させないようにする場合は、下記の部分を丸っと削除します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
<!-- サービス紹介 --> <?php $icon = 'none'; $title = ''; $bzb_ruby = ''; $bzb_catch = ''; $bzb_service_header_array = get_option('bzb_service_header'); if(is_array($bzb_service_header_array)){ extract($bzb_service_header_array) ; } ?> <div id="front-service" class="front-main-cont"> </code></pre> <header class="category_title main_title front-cont-header"> <div class="cont-icon"><i class="<?php echo $icon;?>"></i></div> <h2 class="cont-title"><?php echo $title;?></h2> <p class="cont-ruby"><?php echo $ruby;?></p> <div class="tri-border"><span></span></div> </header> <div class="wrap"> <div class="front-service-inner"> <?php $i = 1; $bzb_service = get_option('bzb_service'); if(isset($bzb_service)){ foreach((array)$bzb_service as $key => $value){ extract(make_info_4top($value)); ?> <section id="front-service-1" class="c_box"> <div class="c_title"> <h3><?php echo $title;?></h3> <p class="c_english"><?php echo $bzb_ruby;?></p> </div> <div class="c_text"> <h4><?php echo nl2br($bzb_catch);?></h4> <p><?php echo $service;?></p> <?php if(isset($button_text) && $button_text !== '') { ?> <p class="c_btn"><a href="<?php echo $button_url;?>" class="btn"><?php echo $button_text;?></a></p> <?php }else{ ?> <p class="c_btn"><a href="<?php echo $url;?>" class="btn">詳しく見る</a></p> <?php } ?> </div> </section> <?php } } ?> </div> </div> </div><!-- /front-contents --> |
会社概要を消去
「会社概要」を表示させないようにする場合は、下記の部分を丸っと削除します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<!-- 会社概要 --> <div id="front-company" class="front-main-cont"> <?php $companies = get_option('company'); $use_company_map = get_option('use_company_map'); $company_map = ""; if(isset($use_company_map) && $use_company_map !== ''){ $company_map = get_option('company_map'); }else{ $company_map_class='no-company-map'; } $icon = 'none'; $titile = ''; $ruby = ''; $bzb_company_header_array = get_option('bzb_company_header'); if(is_array($bzb_company_header_array)){ extract($bzb_company_header_array) ; } ?> <header class="category_title main_title front-cont-header"> <div class="cont-icon"><i class="<?php echo $icon;?>"></i></div> <h2 class="cont-title"><?php echo $title;?></h2> <p class="cont-ruby"><?php echo $ruby;?></p> <div class="tri-border"><span></span></div> </header> <section id="front-contents-1" class="c_box c_box_left <?php echo $company_map_class; ?>"> <div class="c_img_box"> <?php echo $company_map;?> </div> <div class="wrap"> <div class="c_box_inner"> <?php if(isset($companies) && $companies !== ''){ $i = 1; foreach((array)$companies as $key => $company){ echo '<dl id="front-company-'.$i.'">'; echo "<dt><span>" . $company['name'] . "</span></dt><dd><span>" . $company['val'] . "</span></dd>"; echo "</dl>"; $i++; } } ?> </div> </div> </section> </div><!-- front-company --> |
お問い合わせを消去
「お問い合わせ」を表示させないようにする場合は、下記の部分を丸っと削除します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<!-- お問い合わせ --> <div id="front-contact" class="front-main-cont"> <?php $icon = 0; $titile = ''; $ruby = ''; $bzb_contact_header_array = get_option('bzb_contact_header'); if(is_array($bzb_contact_header_array)){ extract($bzb_contact_header_array) ; } $bzb_contact_textarea = get_option('bzb_contact_textarea'); ?> <header class="category_title main_title front-cont-header"> <div class="cont-icon"><i class="<?php echo $icon;?>"></i></div> <h2 class="cont-title"><?php echo $title;?></h2> <p class="cont-ruby"><?php echo $ruby;?></p> <div class="tri-border"><span></span></div> </header> <section id="front-contents-1" class="c_box c_box_left"> <div class="wrap"> <div class="c_box_inner"> <?php echo $content = apply_filters( 'the_content', $bzb_contact_textarea, 10 ); ?> </div> </div> </section> </div><!-- front-contact --> |