Usunięcie widgetów
-
Witam. Mam problem z usunięciem widgetów ze strony które znajdują się na samym dole(kalendarz itp.)
Oto plik footer. Z góry dziękuje!<!-- FOOTER --> <footer> <div class="widgets"> <?php if(get_theme_mod('footer_background_image', '') != ""){ ?> <div class="background" style="background-image:url('<?php echo get_theme_mod('footer_background_image') ?>');"></div> <?php }else{ ?> <div class="background"></div> <?php } ?> <div class="wrapper"> <?php $widget_format = 'before_widget=<section class="footer_widget">&after_widget=</section>&before_title=<h3 class="widget-title">&after_title=</h3>'; if(is_active_sidebar('sidebar-footer-one')){ dynamic_sidebar('sidebar-footer-one'); }else{ the_widget('WP_Widget_Categories', '', $widget_format); } if(is_active_sidebar('sidebar-footer-two')){ dynamic_sidebar('sidebar-footer-two'); }else{ the_widget('WP_Widget_Archives', '', $widget_format); } if(is_active_sidebar('sidebar-footer-three')){ dynamic_sidebar('sidebar-footer-three'); }else{ the_widget('WP_Widget_Meta', '', $widget_format); } if(is_active_sidebar('sidebar-footer-four')){ dynamic_sidebar('sidebar-footer-four'); } else{ the_widget('WP_Widget_Calendar', '', $widget_format); } ?> </div> </div> <div class="lower"> <div class="wrapper"> <div class="bloginfo"> <?php if(get_theme_mod('footer_logo') != ""){ ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo"><img src="<?php echo get_theme_mod('footer_logo') ?>" alt="<?php bloginfo('name'); ?>"></a> <?php }else{ ?> <h3><a href="<?php site_url(); ?>"><?php bloginfo('name'); ?></a></h3> <?php } ?> <p><?php echo get_theme_mod('general_blog_description') ?></p> </div> <div class="disclaimer"> <aside class="social"> <?php if(get_theme_mod('social_facebook') != ""){ ?> <a href="<?php echo get_theme_mod('social_facebook') ?>" target="_blank" class="social_solid rounded fade facebook"><i class="fa fa-facebook"></i></a> <?php } ?> <?php if(get_theme_mod('social_twitter') != ""){ ?> <a href="<?php echo get_theme_mod('social_twitter') ?>" target="_blank" class="social_solid rounded fade twitter"><i class="fa fa-twitter"></i></a> <?php } ?> <?php if(get_theme_mod('social_google') != ""){ ?> <a href="<?php echo get_theme_mod('social_google') ?>" target="_blank" class="social_solid rounded fade google"><i class="fa fa-google-plus"></i></a> <?php } ?> <?php if(get_theme_mod('social_dribbble') != ""){ ?> <a href="<?php echo get_theme_mod('social_dribbble') ?>" target="_blank" class="social_solid rounded fade dribbble"><i class="fa fa-dribbble"></i></a> <?php } ?> <?php if(get_theme_mod('social_instagram') != ""){ ?> <a href="<?php echo get_theme_mod('social_instagram') ?>" target="_blank" class="social_solid rounded fade instagram"><i class="fa fa-instagram"></i></a> <?php } ?> <?php if(get_theme_mod('social_github') != ""){ ?> <a href="<?php echo get_theme_mod('social_github') ?>" target="_blank" class="social_solid rounded fade github"><i class="fa fa-github"></i></a> <?php } ?> <?php if(get_theme_mod('social_skype') != ""){ ?> <a href="<?php echo get_theme_mod('social_skype') ?>" target="_blank" class="social_solid rounded fade skype"><i class="fa fa-skype"></i></a> <?php } ?> <?php if(get_theme_mod('social_linkedin') != ""){ ?> <a href="<?php echo get_theme_mod('social_linkedin') ?>" target="_blank" class="social_solid rounded fade linkedin"><i class="fa fa-linkedin"></i></a> <?php } ?> <?php if(get_theme_mod('social_pinterest') != ""){ ?> <a href="<?php echo get_theme_mod('social_pinterest') ?>" target="_blank" class="social_solid rounded fade pinterest"><i class="fa fa-pinterest"></i></a> <?php } ?> <?php if(get_theme_mod('social_youtube') != ""){ ?> <a href="<?php echo get_theme_mod('social_youtube') ?>" target="_blank" class="social_solid rounded fade youtube"><i class="fa fa-youtube"></i></a> <?php } ?> <?php if(get_theme_mod('social_tumblr') != ""){ ?> <a href="<?php echo get_theme_mod('social_tumblr') ?>" target="_blank" class="social_solid rounded fade tumblr"><i class="fa fa-tumblr"></i></a> <?php } ?> <a href="<?php bloginfo('rss2_url'); ?>" target="_blank" class="social_solid rounded fade rss"><i class="fa fa-rss"></i></a> </aside> <aside class="copyright"> <p class="main"><?php _e('Copyright', 'kitewp'); ?> © <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name'); ?></a>. <?php echo date('Y'); ?> • <?php _e('All rights reserved', 'kitewp'); ?>.</p> <p class="wordpress"><?php _e('Proudly published with', 'kitewp'); ?> <a href="http://wordpress.org">WordPress</a>.</p> </aside> </div> </div> </div> </footer> </div> <?php if(get_theme_mod('demo_show_layout_switch', '') != ""){ ?> <div class="layoutswitch"> <?php if(get_theme_mod('layout_fluid') != ""){ ?> <i class="fa fa-square"></i> <?php }else{ ?> <i class="fa fa-arrows-h"></i> <?php } ?> </div> <?php } ?> <?php wp_footer(); ?> <script type="text/javascript"> window.config = { 'hide_comments': <?php if(get_theme_mod('layout_hidecomments', 'false') == 1){ echo 1; }else{ echo 0; }; ?>, 'disable_highlighter': <?php if(get_theme_mod('layout_disable_syntax_highlighter', 'false') == 1){ echo 1; }else{ echo 0; }; ?>, }; </script> </body> </html>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- Temat ‘Usunięcie widgetów’ jest zamknięty na nowe odpowiedzi.