Title: Syntax error when adding link with site url
Last modified: August 20, 2016

---

# Syntax error when adding link with site url

 *  [Copywrite](https://wordpress.org/support/users/copywrite2012/)
 * (@copywrite2012)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/)
 * Why do I get a syntax error when adding a link with the url of the site? Thanks
 * Parse error: syntax error, unexpected T_STRING in /wp-content/themes/one/functions.
   php on line 29
 * `$default_footer_content = "<a href='#'>Contact Us</a> | <a href='#'>Trademarks
   </a> | <a href='#'>Privacy Statement</a><br />&copy; 2009 - ".date('Y')." <a 
   href="bloginfo('siteurl')">".get_bloginfo('name')."</a>. All Rights Reserved.";`

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

 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/#post-2472216)
 * There is probably something in the footer.php of your theme that brings in the
   default_footer_content. It also looks like the code you added (the link to your
   site) is outside of the quotes and therefore not part of the default_footer_content.
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/#post-2472217)
 * Usually if the footer is coded into functions.php it is a copyright protection
   that the theme author doesn’t want you to remove.
 *  Thread Starter [Copywrite](https://wordpress.org/support/users/copywrite2012/)
 * (@copywrite2012)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/#post-2472220)
 * Thanks Jonas I worked it out
 *     ```
       $default_footer_content = "<a href='#'>Contact Us</a> | <a href='#'>Terms of Use</a> | <a href='#'>Trademarks</a> | <a href='#'>Privacy Statement</a><br />&copy; 2009 - ".date('Y')." <a href='bloginfo('siteurl');'>".get_bloginfo('name')."</a>. All Rights Reserved.";
       ```
   
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/#post-2472221)
 * Great. Looks like `<a href='bloginfo('siteurl');'>` is what made the difference.

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

The topic ‘Syntax error when adding link with site url’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-when-adding-link-with-site-url/#post-2472221)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
