Simple php in footer not working
-
Hi, I’m having a hard time with this simple php code I want to add in footer.php (child theme):
<?php if(is_front_page()){ echo "<a href="http://www.w3schools.com" target='_blank' title='W3C'>Visit W3Schools</a>"; } ?>The following characters are displayed in green by my txt editor as if they were comments:
" target='_blank' title='W3C'>Visit W3Schools</a>";What am I missing here?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘Simple php in footer not working’ is closed to new replies.