داینامیک کردن فوتر سایت با استفاده از قابلیت ابزارک وردپرس و ادیت css مربوط به فوتر
ریجستر کردن 3ساید بار برای فوتر
This commit is contained in:
parent
b2ce252c61
commit
54cca8f729
33
footer.php
33
footer.php
@ -1,29 +1,28 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="kitkala-center">
|
<div class="kitkala-center">
|
||||||
<div class="feature-footer">
|
<div class="feature-footer">
|
||||||
<img src="assets/img/features.png" alt="">
|
<img src="<?php bloginfo('template_url')?>/assets/img/features.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-column">
|
<div class="footer-column">
|
||||||
<h4 class="footer-column-title">راه های ارتباطی</h4>
|
<?php
|
||||||
<p>
|
if(is_active_sidebar('footer-1')){
|
||||||
شماره تماس: 02154743046 <br>
|
dynamic_sidebar('footer-1');
|
||||||
ایمیل : info@kitwp.com <br>
|
}
|
||||||
آدرس : تهران، زعفرانیه ساختمان اداری لاله <br>
|
?>
|
||||||
زمان پاسخگویی : 8 صبح تا 8 عصر <br>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-column">
|
<div class="footer-column">
|
||||||
<h4 class="footer-column-title">دسترسی سریع</h4>
|
<?php
|
||||||
<ul>
|
if(is_active_sidebar('footer-2')){
|
||||||
<li><a href="#">درباره ما</a></li>
|
dynamic_sidebar('footer-2');
|
||||||
<li><a href="#">یگیری سفارش</a></li>
|
}
|
||||||
<li><a href="#">روش های پرداخت</a></li>
|
?>
|
||||||
<li><a href="#">سوالان متداول</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-column">
|
<div class="footer-column">
|
||||||
<h4 class="footer-column-title">مجوزها</h4>
|
<?php
|
||||||
<a href="#"><img src="assets/img/namad.png" alt=""> </a>
|
if(is_active_sidebar('footer-3')){
|
||||||
|
dynamic_sidebar('footer-3');
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="copyright-text"><p>استفاده از مطالب فروشگاه اینترنتی کیت کالا برای مقاصد غیر تجاری و با ذکر منبع بلا مانع است.</p></div>
|
<div class="copyright-text"><p>استفاده از مطالب فروشگاه اینترنتی کیت کالا برای مقاصد غیر تجاری و با ذکر منبع بلا مانع است.</p></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,3 +39,30 @@ function Hefz_Brand_PostType(){
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
add_filter('init','Hefz_Brand_PostType');
|
add_filter('init','Hefz_Brand_PostType');
|
||||||
|
|
||||||
|
function Hefz_Register_Widget(){
|
||||||
|
register_sidebar( array(
|
||||||
|
'name' => __('فوتر حفظ 1'),
|
||||||
|
'id' => 'footer-1',
|
||||||
|
'description' => __( 'در این بخش شما میتونید ابزارک های فوتر ستون اول رو اضافه کنید'),
|
||||||
|
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||||
|
'after_widget' => "</div>\n"
|
||||||
|
) );
|
||||||
|
|
||||||
|
register_sidebar( array(
|
||||||
|
'name' => __('فوتر حفظ 2'),
|
||||||
|
'id' => 'footer-2',
|
||||||
|
'description' => __( 'در این بخش شما میتونید ابزارک های فوتر ستون دوم رو اضافه کنید'),
|
||||||
|
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||||
|
'after_widget' => "</div>\n"
|
||||||
|
) );
|
||||||
|
|
||||||
|
register_sidebar( array(
|
||||||
|
'name' => __('فوتر حفظ 3'),
|
||||||
|
'id' => 'footer-3',
|
||||||
|
'description' => __( 'در این بخش شما میتونید ابزارک های فوتر ستون سوم رو اضافه کنید'),
|
||||||
|
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||||
|
'after_widget' => "</div>\n",
|
||||||
|
) );
|
||||||
|
}
|
||||||
|
add_action('widgets_init', 'Hefz_Register_Widget');
|
@ -762,7 +762,7 @@ footer{
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
line-height: 3;
|
line-height: 3;
|
||||||
}
|
}
|
||||||
.footer-column-title{
|
.footer-column h1 ,.footer-column h2 ,.footer-column h3,.footer-column h4 ,.footer-column h5 ,.footer-column h6{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user