Are you talking about moving to another city within Illinois? Or are you talkign about moving to another State? If the answer is that you are moving to another city then there is nothing preventing that -- however, if the court views that your moving is merely an intentional interferece with the other parents rights or visitation that may be a factor the court considers when awarding permanent custody. Moving to another state does require a parent to petition the court to remove the child. You should consult your attorney about the options and make sure that you have good legitimate arguments for the move and can articulate those reasons.
Only if the temporary custody order does not require you to give advance notice of your proposed move to the
court and the other party(parent or guardian) involved.in the case.