Adding preventing when the plugin have both header and footer location