add woocommerce archive description if exist
i want show category description on my archive product page
i add this code to my template:
?php if ( category_description() ) ?
div class="myproductdescription"?php echo category_description(); ?/div
and add this css code to style.css:
.myproductdescription{
position: relative;
background-color: #fff;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
border-radius: 7px;
box-shadow: 0 2px 2px 0 rgba(168, 172, 185, .3);
padding: 15px;
margin-bottom: 20px;
line-height: 25px;}
its work! but show box shadow and padding in archive product page is`t description!
I want not show if category not description
Topic description categories Wordpress
Category Web