داینامیک کردن فوتر سایت با استفاده از قابلیت ابزارک وردپرس و ادیت css مربوط به فوتر

ریجستر کردن 3ساید بار  برای فوتر
This commit is contained in:
رسول محمدی خانقاه 2025-05-30 17:09:22 +03:30
parent b2ce252c61
commit 54cca8f729
3 changed files with 45 additions and 19 deletions

View File

@ -1,29 +1,28 @@
<footer>
<div class="kitkala-center">
<div class="feature-footer">
<img src="assets/img/features.png" alt="">
<img src="<?php bloginfo('template_url')?>/assets/img/features.png" alt="">
</div>
<div class="footer-column">
<h4 class="footer-column-title">راه های ارتباطی</h4>
<p>
شماره تماس: 02154743046 <br>
ایمیل : info@kitwp.com <br>
آدرس : تهران، زعفرانیه ساختمان اداری لاله <br>
زمان پاسخگویی : 8 صبح تا 8 عصر <br>
</p>
<?php
if(is_active_sidebar('footer-1')){
dynamic_sidebar('footer-1');
}
?>
</div>
<div class="footer-column">
<h4 class="footer-column-title">دسترسی سریع</h4>
<ul>
<li><a href="#">درباره ما</a></li>
<li><a href="#">یگیری سفارش</a></li>
<li><a href="#">روش های پرداخت</a></li>
<li><a href="#">سوالان متداول</a></li>
</ul>
<?php
if(is_active_sidebar('footer-2')){
dynamic_sidebar('footer-2');
}
?>
</div>
<div class="footer-column">
<h4 class="footer-column-title">مجوزها</h4>
<a href="#"><img src="assets/img/namad.png" alt=""> </a>
<?php
if(is_active_sidebar('footer-3')){
dynamic_sidebar('footer-3');
}
?>
</div>
<div class="copyright-text"><p>استفاده از مطالب فروشگاه اینترنتی کیت کالا برای مقاصد غیر تجاری و با ذکر منبع بلا مانع است.</p></div>
</div>

View File

@ -38,4 +38,31 @@ function Hefz_Brand_PostType(){
'menu_icon' => 'dashicons-tickets-alt',
));
}
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');

View File

@ -762,7 +762,7 @@ footer{
color: #fff;
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-size: 19px;
color: #fff;