Sir John Thomas sitting at the High Court ruled that the two men were in breach of the injunction and therefore in contempt of court.
Reflecting on the "gravity" of their offence he said they would be given nine months imprisonment but because of mitigating circumstances it would be suspended.
More top news
The parents of a missing 15-year-old girl have asked their daughter to come home in a statement released alongside Avon and Somerset Police.
For an 11 year old Syrian boy named Saleh, courage comes in learning to ride his new bike again.
A misty and cloudy night should keep frost away for most of the UK, with some spells of rain overnight.