RIskakov 23 Posted June 5, 2015 Report Share Posted June 5, 2015 Привет всем.Давно уже не отображается футер на сайте Wordpress.Было 30 ошибок по валидатору,все исправил.Проблема осталась. В файле index.php подключение футера присутствует. Что делать не знаю...Выручайте.Ссылку на сайт могу скинуть в личку. Quote Link to post Share on other sites
WQP 360 Posted June 5, 2015 Report Share Posted June 5, 2015 footer.php подключается так <?php get_footer(); ?> В нём должен быть код (желательно перед </body>): <?php wp_footer(); ?> Quote Link to post Share on other sites
RIskakov 23 Posted June 5, 2015 Author Report Share Posted June 5, 2015 footer.php подключается так <?php get_footer(); ?> В нём должен быть код (желательно перед </body>): <?php wp_footer(); ?> Всё так как Вы написали. Все равно не отображается. Quote Link to post Share on other sites
WQP 360 Posted June 5, 2015 Report Share Posted June 5, 2015 Значит у вас нет кода в footer.php или вы подключили как-то криво Quote Link to post Share on other sites
RIskakov 23 Posted June 5, 2015 Author Report Share Posted June 5, 2015 <?php /** * The template for displaying the footer. * * Contains the closing of the id=main div and all content after * * @package Pluto */ ?> </div><!-- #content --> <footer id="colophon" class="site-footer" role="contentinfo"> <div id="footer-container"> <div id="footer-navigation"> <?php wp_nav_menu(array( 'theme_location' => 'footer')); ?> </div> <?php if ( (function_exists( 'of_get_option' ) && (of_get_option('footertext2', true) != 1) ) ) : ?> <div id="footertext"> <?php echo of_get_option('footertext2', true); ?> </div> <?php endif; ?> <?php if ( of_get_option('credit1', true) == 0 ) : ?> <div class="site-info"> <?php do_action( 'pluto_credits' ); ?> <?php printf('<a href="http://www.csgo-play.ru" rel="designer">CSGO-PLAY.RU - Всё про CS:GO</a>' ); ?> </div><!-- .site-info --> <?php endif; ?> </div><!--#footer-container--> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html> Footer.php <?php get_sidebar(); ?> <?php get_footer(); ?> Это конец файла index.php - Сайдбар подключается. Quote Link to post Share on other sites
WQP 360 Posted June 5, 2015 Report Share Posted June 5, 2015 Ну и правильно что у вас он не отображается... Закрывайте теги! http://joxi.ru/eAO1d1eUeRdBmo.jpg AlexBrush and RIskakov 2 Quote Link to post Share on other sites
RIskakov 23 Posted June 5, 2015 Author Report Share Posted June 5, 2015 ОГРОМНОЕ СПАСИБО!Моя невнимательность виновата в этом.Сайдбар работал некорректно + footer'a не было. А теперь всё работает. Еще раз,ОГРОМНОЕ СПАСИБО! Quote Link to post Share on other sites
DIZZ 0 Posted August 1, 2016 Report Share Posted August 1, 2016 Похожая проблема. Футер не отображается index <?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div class="outer" id="contentwrap"> <div class="postcont"> <div id="content"> <?php if(is_home()) { include (TEMPLATEPATH . '/featured.php'); } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(260,200), array("class" => "alignleft post_thumbnail")); } ?> <h2 class="title entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Постоянная ссылка на <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <noindex><div class="postdate"> <img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <span class="updated"><?php the_time('d.m.Y') ?></span> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <span class="author vcard"><span class="fn"><?php the_author();?></span></span> <br /> <img src="<?php bloginfo('template_url'); ?>/images/comments.png" /> <?php comments_popup_link('Комментариев нет »', '1 комментарий »', '% комментариев »'); ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Редактировать', '', ''); } ?></div></noindex> <div class="entry"> <?php the_content('<strong>Читать далее »</strong>'); ?> </div> </div><!--/post-<?php the_ID(); ?>--> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <div class="alignleft"><?php next_posts_link('« Предыдущие записи') ?></div> <div class="alignright"><?php previous_posts_link('Следующие записи »') ?></div> <?php } ?> </div> <?php else : ?> <h2 class="center">Не найдено.</h2> <p class="center">Извините, но по Вашему запросу ничего не было найдено.</p> <?php get_search_form(); ?> <?php endif; ?> </div> </div> <?php get_sidebars(); ?> </div> <?php get_footer(); ?> footer <div class="outer"> <div id="footer">Все права защищены. © <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?> </div> </div> </div> </div></div> <script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script> <a href="#" id="toTop"><img src=http://crimea-extrim.ru/wp-admin/images/top.png border="0" align="absmiddle" /></a> <!--увеличение фото--> <script type="text/javascript" src="http://crimea-extrim.ru/sbox/simplebox_util.js"></script> <script type="text/javascript"> (function(){ var boxes=[],els,i,l; if(document.querySelectorAll){ els=document.querySelectorAll('a[rel=simplebox]'); Box.getStyles('simplebox_css','http://crimea-extrim.ru/sbox/simplebox.css'); Box.getScripts('simplebox_js','http://crimea-extrim.ru/sbox/simplebox.js',function(){ simplebox.init(); for(i=0,l=els.length;i<l;++i) simplebox.start(els[i]); simplebox.start('a[rel=simplebox_group]'); }); } })();</script> <!--/увеличение фото--> <!--из хедера--> <noindex> <!-- Start SiteHeart code --> <script> (function(){ var widget_id = 723452; _shcp =[{widget_id : widget_id}]; var lang =(navigator.language || navigator.systemLanguage || navigator.userLanguage ||"en") .substr(0,2).toLowerCase(); var url ="widget.siteheart.com/widget/sh/"+ widget_id +"/"+ lang +"/widget.js"; var hcc = document.createElement("script"); hcc.type ="text/javascript"; hcc.async =true; hcc.src =("https:"== document.location.protocol ?"https":"http") +"://"+ url; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hcc, s.nextSibling); })(); </script> <!-- End SiteHeart code --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>// <![CDATA[ $(".closed").toggleClass("show"); $(".title").click(function(){ $(this).parent().toggleClass("show").children("div.contents").slideToggle("medium"); if ($(this).parent().hasClass("show")) $(this).children(".title_h3").css("background","#bbbbbb"); else $(this).children(".title_h3").css("background","#dddddd"); }); // ]]></script> </noindex> <?php wp_footer(); echo get_theme_option("footer") . "\n"; ?> <script src="http://crimea-extrim.ru/wp-admin/js/toTop.js" type="text/javascript"></script> <script type="text/javascript"> $j(function() { $j("#toTop").scrollToTop(); }); </script> </div> <!-- BEGIN 33Across SiteCTRL Script --> <script type='text/javascript'> if(document.location.protocol=='http:'){ var Tynt=Tynt||[];Tynt.push('a8CpaWvuSr5AkMacwqm_6r'); (function(){var h,s=document.createElement('script');s.src='http://cdn.tynt.com/ti.js'; h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();} </script> <!-- END 33Across SiteCTRL Script --> </body> </html> Quote Link to post Share on other sites
RomanGBO 0 Posted July 30, 2017 Report Share Posted July 30, 2017 Доброго времени суток. проблема в следующем криво отображается футер на главной!!! на остальных страницах отображается как задан в footer.php. при чем если ты в админке сайта и просматриваешь главную отображается как задано, заходишь с другого браузера для просмотра отображается криво. index.php Цитата <?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package Palm Beach */ get_header(); ?> <section id="primary" class="content-single content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'page' ); endwhile; palm_beach_pagination(); else : get_template_part( 'template-parts/content', 'none' ); endif; ?> </main><!-- #main --> </section><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> footer.php Цитата <div id="footer-widgets"> <div id="footer1"> <a href="https://vk.com/gaznaavto"><img src="https://gbo82.ru/wp-content/uploads/vk.jpg" ></a> <a href="https://www.facebook.com/gbo82simferopol"><img src="https://gbo82.ru/wp-content/uploads/Facebook.jpg" ></a> <!--LiveInternet counter--><script type="text/javascript"> document.write("<a href='//www.liveinternet.ru/click' "+ "target=_blank><img src='//counter.yadro.ru/hit?t26.6;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";"+Math.random()+ "' alt='' title='LiveInternet: показано число посетителей за"+ " сегодня' "+ "border='0' width='88' height='15'><\/a>") </script><!--/LiveInternet--> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-1') ) : ?> <?php endif; ?> </div> <div id="footer2"> <a href="https://gbo82.ru/gbo-simferopol/">Установка ГБО в Симферополе</a></br> <a href="https://gbo82.ru/neispravnosti-gbo/">Неисправности ГБО</a></br> <a href="https://gbo82.ru/kak-vybrat-gbo-na-avto/">Как выбрать ГБО на авто</a></br> <a href="https://gbo82.ru/magazin-gbo/">Интернет магазин ГБО</a></br> <a href="https://gbo82.ru/price/">Цены на установку ГБО</a></br> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-2') ) : ?> <?php endif; ?> <!-- Yandex.Metrika counter --> <script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter37374750 = new Ya.Metrika({ id:37374750, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/37374750" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-92791001-1', 'auto'); ga('send', 'pageview'); </script> </div> <div id="footer3"> <p> Контакты СТО "ГАЗ на АВТО" :</p> <p>Адрес: г. Симферополь, ул. Маяковского 14</p> <p>Режим работы: Понедельник - Пятница с 9:00 до 17:00 </p> <p>ТЕЛ: +7 978 71 000 89; </br> ТЕЛ: +7 978 7 222 167</p> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-3') ) : ?> <?php endif; ?> <!-- BEGIN JIVOSITE CODE {literal} --> <script type='text/javascript'> (function(){ var widget_id = 'n36sfQYu5A';var d=document;var w=window;function l(){ var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();</script> <!-- {/literal} END JIVOSITE CODE --></div> </div> <div style="clear-both"></div> <!-- hit.ua --> <a href='http://hit.ua/?x=88284' target='_blank'> <script language="javascript" type="text/javascript"><!-- Cd=document;Cr="&"+Math.random();Cp="&s=1"; Cd.cookie="b=b";if(Cd.cookie)Cp+="&c=1"; Cp+="&t="+(new Date()).getTimezoneOffset(); if(self!=top)Cp+="&f=1"; //--></script> <script language="javascript1.1" type="text/javascript"><!-- if(navigator.javaEnabled())Cp+="&j=1"; //--></script> <script language="javascript1.2" type="text/javascript"><!-- if(typeof(screen)!='undefined')Cp+="&w="+screen.width+"&h="+ screen.height+"&d="+(screen.colorDepth?screen.colorDepth:screen.pixelDepth); //--></script> <script language="javascript" type="text/javascript"><!-- Cd.write("<img src='//c.hit.ua/hit?i=88284&g=0&x=2"+Cp+Cr+ "&r="+escape(Cd.referrer)+"&u="+escape(window.location.href)+ "' border='0' wi"+"dth='1' he"+"ight='1'/>"); //--></script> <noscript> <img src='//c.hit.ua/hit?i=88284&g=0&x=2' border='0'/> </noscript></a> <!-- / hit.ua --> Quote Link to post Share on other sites
c00x 33 Posted July 30, 2017 Report Share Posted July 30, 2017 46 минут назад, RomanGBO сказал: footer.php Незакрытые теги: <html> <body> <div id="page"> <div id="content"> Quote Link to post Share on other sites
KPdd 0 Posted September 19, 2020 Report Share Posted September 19, 2020 Здравствуйте. Скрин ответа сейчас не доступен, поэтому не могу посмотреть ответ. В общем у меня такая же проблема, внезапно пропал весь подвал сайта. Вроде в коде ничего не делал. Quote Link to post Share on other sites
KPdd 0 Posted September 19, 2020 Report Share Posted September 19, 2020 <?php get_footer(); /** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Bam */ ?> </div><!-- .container --> </div><!-- #content --> <?php do_action( 'bam_after_content' ); ?> <?php do_action( 'bam_before_footer' ); ?> <footer id="colophon" class="site-footer"> <?php do_action( 'bam_footer_top' ); ?> <?php // sidebar count. $bam_footer_sidebar_count = get_theme_mod( 'bam_footer_sidebar_count', '3' ); // widget area class. $bam_widget_area_class = 'th-columns-' . $bam_footer_sidebar_count; // container class. if ( true == get_theme_mod( 'bam_footer_widgets_fullwidth', false ) ) { $bam_footer_container_class = 'container-fluid'; } else { $bam_footer_container_class = 'container'; } ?> <div class="footer-widget-area clearfix <?php echo esc_attr( $bam_widget_area_class ); ?>"> <div class="<?php echo esc_attr( $bam_footer_container_class ); ?>"> <div class="footer-widget-area-inner"> <div class="col column-1"> <?php dynamic_sidebar( 'footer-1' ); ?> </div> <?php if ( $bam_footer_sidebar_count >= '2' ) : ?> <div class="col column-2"> <?php dynamic_sidebar( 'footer-2' ); ?> </div> <?php endif; ?> <?php if ( $bam_footer_sidebar_count >= '3' ) : ?> <div class="col column-3"> <?php dynamic_sidebar( 'footer-3' ); ?> </div> <?php endif; ?> <?php if ( $bam_footer_sidebar_count >= '4' ) : ?> <div class="col column-4"> <?php dynamic_sidebar( 'footer-4' ); ?> </div> <?php endif; ?> </div><!-- .footer-widget-area-inner --> </div><!-- .container --> </div><!-- .footer-widget-area --> <div class="site-info clearfix"> <center>ProDocExpert.ru © <?php echo date('Y');?> Копирование текстов с сайта возможно только с указанием ссылки на источник.</center> <center>Обратите внимание! Информация на сайте не заменит поход к врачу. Точные и индивидуальные рекомендации может дать только врач при осмотре.</center> </div><!-- .site-info --> <?php do_action( 'bam_footer_bottom' ); ?> </footer><!-- #colophon --> <?php do_action( 'bam_after_footer' ); ?> </div><!-- #page --> <?php do_action( 'bam_body_bottom' ); ?> <?php wp_footer(); ?> </body> </html> Quote Link to post Share on other sites
KPdd 0 Posted September 19, 2020 Report Share Posted September 19, 2020 Сейчас поменял на исходный код разработчика, ничего не поменялось, даже так он не отображается. Значит не в этом проблема. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.