A parent can file for custody if the child has lived in Pennsylvania for at least six consecutive months. If the child has lived in Bucks County, the custody petition would be filed through the Bucks County Domestic Relations office.There are some exceptions to filing for custody, such as if the child is less than six months of age or if the child was removed from the state due to an extreme emergency such as abuse. A parent, through their Bucks County divorce lawyer, initially files for temporary custody which means he/she is awarded custody during the time awaiting for the formal court hearing.