Welcart Nova 1.1.0 をリリースしました。
今回の更新内容は次の通りです。
更新内容は以下のとおりです。
商品カテゴリー複合検索ページの「検索開始」ボタンのスタイルを調整
welcart_basic-nova/usces_cart.css 748行目
修正前
#searchbox input.usces_search_button {
display: inline-block;
color: #fff;
width: auto;
padding: 0 30px;
background-color: #c2c3c3;
border: none;
line-height: 40px;
text-align: center;
-moz-box-shadow: 0 3px #a5a6a7;
-webkit-box-shadow: 0 3px #a5a6a7;
box-shadow: 0 3px #a5a6a7;
}
修正後
#searchbox input.usces_search_button {
color: #fff;
width: auto;
padding: 0 30px;
background-color: #c2c3c3;
border: none;
line-height: 40px;
text-align: center;
-moz-box-shadow: 0 3px #a5a6a7;
-webkit-box-shadow: 0 3px #a5a6a7;
box-shadow: 0 3px #a5a6a7;
}
グローバルナビのサブメニューがブラウザからはみ出した時、はみ出した部分が見れなくなるのを修正
welcart_basic-nova/css/home-parts.css 340行目
修正前
header.site-header .inner {
width: 100%;
padding: 35px 0 100% 0;
background-color: #1c1c1c;
}
修正後
header.site-header .inner {
width: 100%;
height: 100%;
padding: 35px 0 100% 0;
background-color: #1c1c1c;
}
welcart_basic-nova/css/home-parts.css 472行目あたり
追加
.home #site-navigation ul li {
position: static;
}
welcart_basic-nova/css/home-parts.css 479行目
修正前
.home #site-navigation li a {
font-size: 13px;
margin-bottom: 0;
padding: 0 15px 0 30px;
line-height: 50px;
}
修正後
.home #site-navigation li a {
font-size: 13px;
margin-bottom: 0;
padding: 0 15px 0 30px;
line-height: 50px;
position: relative;
}
welcart_basic-nova/css/home-parts.css 491行目
修正前
.home #site-navigation ul ul {
display: block;
width: 100%;
background-color: #1c1c1c;
border: none;
opacity: 0;
position: absolute;
left: 0;
top: 0;
z-index: -1;
transition-duration: .5s;
-webkit-transition-duration: .5s;
-moz-transition-duration: .5s;
}
修正後
.home #site-navigation ul ul {
display: block;
width: 100%;
height: 100%;
background-color: #1c1c1c;
border: none;
opacity: 0;
overflow-y: auto;
position: absolute;
left: 0;
top: 0;
z-index: -1;
transition-duration: .5s;
-webkit-transition-duration: .5s;
-moz-transition-duration: .5s;
}
welcart_basic-nova/css/home-parts.css 523行目
修正前
.home #site-navigation ul ul ul {
position: static;
opacity: 1;
}
修正後
.home #site-navigation ul ul ul {
position: static;
opacity: 1;
height: auto;
overflow-y: inherit;
}
welcart_basic-nova/css/home-parts.css 571行目
修正前
.home #site-navigation ul ul,
.blog #site-navigation ul ul {
display: block;
width: 100%;
height: 100%;
background-color: #1c1c1c;
border: none;
opacity: 0;
overflow-y: auto;
position: absolute;
left: 0;
top: 0;
z-index: -1;
transition-duration: .5s;
-webkit-transition-duration: .5s;
-moz-transition-duration: .5s;
}
修正後
.home #site-navigation ul ul,
.blog #site-navigation ul ul {
display: block;
width: 100%;
height: 100%;
padding: 0 0 50px;
background-color: #1c1c1c;
border: none;
opacity: 0;
overflow-y: auto;
position: absolute;
left: 0;
top: 0;
z-index: -1;
transition-duration: .5s;
-webkit-transition-duration: .5s;
-moz-transition-duration: .5s;
}
welcart_basic-nova/css/ie.css 21行目
修正前
.home .snav .membership {
overflow: inherit;
}
修正後
.home .snav .membership,
.blog .snav .membership {
overflow: inherit;
}
welcart_basic-nova/css/ie.css 24行目
修正前
.home #site-navigation {
position: inherit;
}
修正後
.home #site-navigation,
.blog #site-navigation {
position: inherit;
}
welcart_basic-nova/css/ie.css 29行目あたり
追加
.home #site-navigation ul li:hover ul,
.blog #site-navigation ul li:hover ul {
height: 100%;
}
.home #site-navigation ul li:hover li,
.blog #site-navigation ul li:hover li {
height: auto;
}
welcart_basic-nova/css/ie.css 38行目
修正前
.home .search-box input[type='text'],
.home .search-box #searchsubmit,
.widget_search #s {
height: 30px;
}
修正後
.home .search-box input[type='text'],
.home .search-box #searchsubmit,
.blog .search-box input[type='text'],
.blog .search-box #searchsubmit,
.widget_search #s {
height: 30px;
}
welcart_basic-nova/css/ie.css 47行目
修正前
.category #primary .page-header {
height: 400px;
}
管理画面 > フロントページの表示設定を「固定ページ」に設定しても表示されない不具合を修正
まずは、Welcart Basicを1.2にアップデートしてください。
welcart_basic-nova/front-page.php 31行目
修正前
<div class="cat-desc-wrap">
修正後
<div class="cf slider cat-slider">
welcart_basic-nova/front-page.php 52行目
修正前
<?php if( have_posts() ) : ?>
<section class="front-il cf">
<?php if(wcct_get_options('home_cat_title')): ?>
<h2><?php echo get_cat_name( get_query_var( 'cat' ) ); ?></h2>
<?php endif; ?>
<div class="slider item-block-slider">
<?php while( have_posts() ) : the_post(); usces_the_item(); ?>
<article id="post-<?php the_ID(); ?>">
<div class="itemimg">
<a href="<?php the_permalink(); ?>">
<?php usces_the_itemImage( 0, 300, 300 ); ?>
<?php if( wcct_get_options('display_soldout') && !usces_have_zaiko_anyone() ): ?>
<div class="itemsoldout">
<div class="inner">
<?php _e('SOLD OUT', 'welcart_basic_nova' ); ?>
<?php if( wcct_get_options('display_inquiry') ): ?>
<span class="text"><?php wcct_options('display_inquiry_text'); ?></span>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</a>
</div>
<?php wcct_produt_tag(); ?>
<div class="item-info-wrap">
<div class="itemname"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php usces_the_itemName(); ?></a></div>
<div class="itemprice"><?php usces_crform( usces_the_firstPrice('return'), true, false ) . usces_guid_tax(); ?></div>
</div><!-- item-info-box -->
</article>
<?php endwhile; ?>
</div><!-- .item-block-slider -->
</section><!-- .front-il -->
<?php endif; ?>
修正後
<?php if ( 'page' == get_option('show_on_front') ): ?>
<div class="sof">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php else: ?>
<?php if( have_posts() ) : ?>
<section class="front-il cf">
<?php if(wcct_get_options('home_cat_title')): ?>
<h2><?php echo get_cat_name( get_query_var( 'cat' ) ); ?></h2>
<?php endif; ?>
<div class="slider item-block-slider">
<?php while( have_posts() ) : the_post(); usces_the_item(); ?>
<article id="post-<?php the_ID(); ?>">
<div class="itemimg">
<a href="<?php the_permalink(); ?>">
<?php usces_the_itemImage( 0, 300, 300 ); ?>
<?php if( wcct_get_options('display_soldout') && !usces_have_zaiko_anyone() ): ?>
<div class="itemsoldout">
<div class="inner">
<?php _e('SOLD OUT', 'welcart_basic_nova' ); ?>
<?php if( wcct_get_options('display_inquiry') ): ?>
<span class="text"><?php wcct_options('display_inquiry_text'); ?></span>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</a>
</div>
<?php wcct_produt_tag(); ?>
<?php welcart_basic_campaign_message(); ?>
<div class="item-info-wrap">
<div class="itemname"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php usces_the_itemName(); ?></a></div>
<div class="itemprice"><?php usces_crform( usces_the_firstPrice('return'), true, false ) . usces_guid_tax(); ?></div>
</div><!-- item-info-box -->
</article>
<?php endwhile; ?>
</div><!-- .item-block-slider -->
</section><!-- .front-il -->
<?php endif; ?>
<?php endif; ?>
welcart_basic-nova/css/home-parts.css 22行目
修正前
.home.blog #content h2 {
color: #6c6c6c;
font-size: 20px;
font-weight: normal;
margin-bottom: 30px;
text-align: center;
letter-spacing: 1px;
}
.home.blog #content h2:after {
display: block;
content: " ";
width: 70px;
height: 2px;
background-color: #aaa;
margin: 15px auto 0;
}
修正後
.home.blog #content h2,
#content .info-area h2 {
color: #6c6c6c;
font-size: 20px;
font-weight: normal;
margin-bottom: 30px;
text-align: center;
letter-spacing: 1px;
}
.home.blog #content h2:after,
#content .info-area h2:after {
display: block;
content: " ";
width: 70px;
height: 2px;
background-color: #aaa;
margin: 15px auto 0;
}
welcart_basic-nova/css/home-parts.css 231行目あたり
追加
/*-- if ( 'posts' == get_option( 'show_on_front' ) ) --*/
.home #content .entry-title {
margin: 30px 15px;
border: none;
}
.home #content .entry-content {
margin: 0 15px;
}
welcart_basic-nova/css/home-parts.css 706行目あたり
追加
/*-- if ( 'posts' == get_option( 'show_on_front' ) ) --*/
.home #content .entry-title {
width: auto;
font-size: 26px;
margin: 30px 15px 0;
}
welcart_basic-nova/css/home-parts.css 833行目あたり
追加
/*-- if ( 'posts' == get_option( 'show_on_front' ) ) --*/
.home #content .entry-title,
.home #content .entry-content {
width: auto;
margin: 30px 60px 0;
padding: 0;
}
PHP5.2環境下でテーマが有効化できない不具合を修正
welcart_basic-nova/inc/theme-customizer.php 145行目
修正前
'active_callback' => function() { return !is_front_page() && !is_home() && !welcart_basic_is_cart_page() && !welcart_basic_is_member_page(); },
修正後
'active_callback' => 'callback_is_twocolumn',
welcart_basic-nova/inc/theme-customizer.php 163行目
welcart_basic-nova/inc/theme-customizer.php 205行目
修正前
'active_callback' => function() { return is_front_page() || is_home() || is_archive() || is_search(); },
修正後
'active_callback' => 'callback_is_itemlist',
welcart_basic-nova/inc/theme-customizer.php 266行目
welcart_basic-nova/inc/theme-customizer.php 282行目
welcart_basic-nova/inc/theme-customizer.php 297行目
welcart_basic-nova/inc/theme-customizer.php 314行目
修正前
'active_callback' => function() { return is_single() && usces_is_item(); },
修正後
'active_callback' => 'callback_is_itemsingle',
welcart_basic-nova/inc/theme-customizer.php 331行目
修正前
'active_callback' => function() { return welcart_basic_is_cart_page(); },
修正後
'active_callback' => 'callback_is_cartpage',
welcart_basic-nova/inc/theme-customizer.php 362行目
修正前
'active_callback' => function() { return is_category(); },
修正後
'active_callback' => 'callback_is_category',
welcart_basic-nova/inc/theme-customizer.php 377行目
追加
function callback_is_twocolumn() {
return !is_front_page() && !is_home() && !welcart_basic_is_cart_page() && !welcart_basic_is_member_page() && !( is_single() && usces_is_item() );
}
function callback_is_itemlist() {
return is_front_page() || is_home() || is_archive() || is_search();
}
function callback_is_itemsingle() {
return is_single() && usces_is_item();
}
function callback_is_cartpage() {
return welcart_basic_is_cart_page();
}
function callback_is_category() {
return is_category();
}
サブページでヘッダーナビメニューのレイアウトを修正
welcart_basic-nova/css/parts.css 33行目
修正前
div.site-title {
margin: 68px 0 19px;
}
修正後
div.site-title {
position: relative;
margin: 68px 0 19px;
}
welcart_basic-nova/css/parts.css 174行目
修正前
#site-navigation {
position: static;
width: 100%;
height: auto !important;
top: 0;
left: 0;
margin-right:160px;
padding: 0;
background: none;
opacity: 1;
}
修正後
#site-navigation {
position: static;
width: auto;
height: auto !important;
top: 0;
left: 0;
margin: 0 160px 0 0;
padding: 0;
background: none;
opacity: 1;
}