• Resolved amsuae

    (@amsuae)


    Ian getting an error message for the footer: its at the end of the footer code. I believe something was removed the message is and unexpected end of file syntax error message:

    here is the full footer file:

    <?php
    /**
    * The template for displaying the footer.
    *
    * Contains the closing of the id=main div and all content after
    *
    * @package The Box
    * @since The Box 1.0
    */
    ?>

    </div><!-- #main .site-main -->

    <footer id="colophon" class="site-footer clearfix" role="contentinfo">
    <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
    <div id="tertiary" class="clearfix">
    <?php dynamic_sidebar( 'sidebar-2' ); ?>
    </div>

    </div>
    <div class="col-6">
    <?php
    if ( has_nav_menu( 'secondary' ) ) { ?>
    <nav id="footer-navigation" class="footer-navigation">
    <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_id' => 'secondary-menu', 'container_class' => 'menu-container', 'depth' => 1 ) ); ?>
    </nav>
    <?php } ?>
    </div>
    </div>
    </footer><!-- #colophon .site-footer -->

    </div><!-- #page -->

    <?php wp_footer(); ?>

    </body></html>

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @amsuae I’ve deleted your topic about this topic. That doesn’t help you and makes it harder on the other volunteers to assist you.

    These forums are 100% volunteer driven. Sometimes you do not get an answer.

    What is the text of the error message you are seeing?

    Thread Starter amsuae

    (@amsuae)

    OK

    I didn’t know that, the text of the message is

    Syntax error, unexpected end of file in /home/omarcpanel/public_html/wp-content/themes/the-box/footer.php on line 36

    any help will be appreciated

    thanks

    hi @amsuae,
    it seems that you changed footer.php to remove site credits and now the file is broken.
    it’s not allowed to remove site credits.

    Thread Starter amsuae

    (@amsuae)

    Hi @design Lab

    please provide the unbroken script so I can replace it

    many thanks

    hi @amsuae,
    you can download the theme from the WordPress repository.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Footer error’ is closed to new replies.