CSS giving error for footer

Hello,

I keep getting an error when i try to add CSS to my footer.php Getting a

Your PHP code changes were rolled back due to an error on line 138 of file wp-content/themes/enfold/footer.php. Please fix and try saving again.

syntax error, unexpected '<'

Here is my code:

    <div>
        <div class="custom_disclaimer"> NOTICE & DISCLAIMER: This website is intended for informational purposes ONLY. Information contained on this site is not legal advice and is not a substitute for legal counsel. No attorney-client relationship is formed by visiting or using this website. Should you choose to contact Santarlas Law, please be advised that no attorney-client relationship is created unless and until a written retainer agreement is signed by both you and Santarlas Law.
    </div>
    <!-- ####### END SOCKET CONTAINER ####### -->
</footer>

Hi @shivikakar,

Welcome to the forums! To successfully add HTML code to your PHP file, you need to close PHP tag first by adding ?> at the end of PHP code. I would advise against doing any changes to PHP files though if you don’t have sufficient knowledge, as this can make your website inaccessible.

Thanks,
Luca

1 Like