• Hi!

    My company had a web developer create our website. On Friday, I was trying to add the term and conditions and stupidly I wasn’t doing it on child’s theme. I messed up the footer and I have tried everything to edit it make the formula correct. Below is what the code currently says:

    </div>

    <div id=’Footer’>
    <div id=’FooterSocial’>

    </div>

    <div class=”container widthConstrainer”>
    <div id=’Subscribe’>
    <p>Want to join our mailing list? <img src=”<?php bloginfo(‘template_url’); ?>/images/Subscribe.fw.png” /></p>
    </div>
    <div id=’FooterNavigation’>

    <?php wp_nav_menu(array(‘theme_location’ => ‘FooterLinks’, ‘items_wrap’ => ‘<ulid=”FooterNav”%3$s’, ‘container”; ?>

    <?php echo home_url(); ?>/contact-form/”><img src=”<?php bloginfo(‘template_url’); >/images/ContactUs.png” id=’FooterContactUs’ /><?>
    </div>

    <?php

    wp_footer();

    ?>
    </div>

    </body>

    </html>

    The error message on the website says “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/ryanan14/public_html/wordpress/wp-content/themes/R&W/footer.php on line 16”

    Please let me know what to edit on Line 16 because I’ve tried everything.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php wp_nav_menu(array(‘theme_location’ => ‘FooterLinks’, ‘items_wrap’ => ‘<ulid=”FooterNav”%3$s’, ‘container”; ?>
    change this to following.

    <?php wp_nav_menu(array(‘theme_location’ => ‘FooterLinks’, ‘menu_id’ => ‘FooterNav’) );?>

    Thread Starter RWks498

    (@rwks498)

    It now says:

    </div>

    <div id=’Footer’>
    <div id=’FooterSocial’>

    </div>

    <div class=”container widthConstrainer”>
    <div id=’Subscribe’>
    <p>Want to join our mailing list? <img src=”<?php bloginfo(‘template_url’); ?>/images/Subscribe.fw.png” /></p>
    </div>
    <div id=’FooterNavigation’>

    <?php wp_nav_menu(array(‘theme_location’ => ‘FooterLinks’, ‘menu_id’ => ‘FooterNav’) );?>

    <?php echo home_url(); ?>/contact-form/”><img src=”<?php bloginfo(‘template_url’); >/images/ContactUs.png” id=’FooterContactUs’ /><?>
    </div>

    <?php

    wp_footer();

    ?>
    </div>

    </body>

    And I’m still receiving the area message. I tried clearing the cache and checked the footer on my phone as well. I’m getting the same error message about Line 16.

    Thanks!!

    </div>
    
    <div id='Footer'>
    <div id='FooterSocial'>
    
    </div>
    
    <div class="container widthConstrainer">
    <div id='Subscribe'>
    <p>Want to join our mailing list? <img src="<?php bloginfo('template_url'); ?>/images/Subscribe.fw.png" /></p>
    </div>
    <div id='FooterNavigation'>
    
    <?php wp_nav_menu(array('theme_location' => 'FooterLinks', 'menu_id' => 'FooterNav') );?>
    
    <a href="<?php echo bloginfo(); ?>/contact-form/"><img src="<?php bloginfo('template_url'); ?>/images/ContactUs.png" id='FooterContactUs' /></a>
    </div>
    
    <?php
    
    wp_footer();
    
    ?>
    </div>
    </body>

    Please replace your code with this.

    Thread Starter RWks498

    (@rwks498)

    Perfect! Thank you!!!!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Parse Error in footer’ is closed to new replies.