Title: Problems with templates
Last modified: August 18, 2016

---

# Problems with templates

 *  [kaitlyn2004](https://wordpress.org/support/users/kaitlyn2004/)
 * (@kaitlyn2004)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/problems-with-templates-2/)
 * I tried to modify the header.php file for the template to just require() my global
   header for my site.
 * Two issues I noticed right away were:
    I use $sql for the link to MySQL… I see
   WordPress uses it to hold the queries. What can I do?
 * I also had some issues with scope, where declared variables in MY header.php 
   file were not available through $GLOBALS[‘var_name’]
 * Any input, any ideas?
 * Thanks!

The topic ‘Problems with templates’ is closed to new replies.

## Tags

 * [templates](https://wordpress.org/support/topic-tag/templates/)
 * [variable-scope](https://wordpress.org/support/topic-tag/variable-scope/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kaitlyn2004](https://wordpress.org/support/users/kaitlyn2004/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/problems-with-templates-2/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
