Missing Footer
-
Greetings and thank you for this great starter theme.
First and foremost, I am a relative beginner to WordPress and still getting my head around how everything works. I have setup a child theme and using the template “Blank without container” for all my pages. Unfortunately the standard footer is missing – please see http://blog.iot-automotive.news
Would appreciate any help on solving this problem.
Thank youThe page I need help with: [log in to see the link]
-
Hi claudiof1,
Thanks for using our theme, I check the source code of your website but I can not see the any html code related to footer. Can you copy the footer.php from the parent theme to your child theme? by the way nice website 🙂
Greetings and thank you for the quick reply.
So you know, I have already copied the footer.php from the parent theme to the child theme. The code is below:
<?php /** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.ww.wp.xz.cn/themes/basics/template-files/#template-partials * * @package WP_Bootstrap_Starter */ ?> <?php if(!is_page_template( 'blank-page.php' ) && !is_page_template( 'blank-page-with-container.php' )): ?> </div><!-- .row --> </div><!-- .container --> </div><!-- #content --> <?php get_template_part( 'footer-widget' ); ?> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="container"> <div class="site-info"> © <?php echo date('Y'); ?> <?php echo '<a href="'.home_url().'">'.get_bloginfo('name').'</a>'; ?> <span class="sep"> | </span> <a href="https://afterimagedesigns.com/" target="_blank" title="WordPress Technical Support"><?php echo esc_html__('WordPress Technical Support','wp-bootstrap-starter'); ?></a> </div><!-- close .site-info --> </div> </footer><!-- #colophon --> <?php endif; ?> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>-
This reply was modified 8 years, 8 months ago by
Jan Dembowski. Reason: Formatted code block
Greeting and thank you for the quick reply.
So you know, I have already copied the footer.php from the parent theme to the child theme. Here is a screenshot: https://s6.postimg.org/5iqb9bvch/Screen_Shot_2017-09-19_at_10.15.36.png
Hi claudiof1,
I am sorry I forgot that I intentional remove the footer in blank templates, to make it show please change the code of the footer.php of the child theme to this
<?php /** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.ww.wp.xz.cn/themes/basics/template-files/#template-partials * * @package WP_Bootstrap_Starter */ ?> </div><!-- .row --> </div><!-- .container --> </div><!-- #content --> <?php get_template_part( 'footer-widget' ); ?> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="container"> <div class="site-info"> © <?php echo date('Y'); ?> <?php echo '<a href="'.home_url().'">'.get_bloginfo('name').'</a>'; ?> <span class="sep"> | </span> <a class="credits" href="https://afterimagedesigns.com/" target="_blank" title="Wordpress Technical Support" alt="Wordpress Technical Support"><?php echo esc_html__('Wordpress Technical Support','wp-bootstrap-starter'); ?></a> </div><!-- close .site-info --> </div> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>ExcellenT!!!! Works perfectly!!!!
Thank you so much for your help.Your welcome 🙂
-
This reply was modified 8 years, 8 months ago by
The topic ‘Missing Footer’ is closed to new replies.
