Those of you whose marriages aren't going well, try remembering the solemn vows you exchanged before God on your wedding day.
Literal
Married-life [subject-が] well is-not-going [attributive] people [topic-は] wedding-ceremony [attributive-の] time [at-に] solemnly God [before-の前に] pledged, married-couple [attributive-の] vow [object-を] try-to-remember-[imperative-ましょう].
Religious/marital counseling register. 方 ('person,' polite). おごそかに ('solemnly') is the adverbial of 厳か. 誓約 ('vow, pledge') is more formal than 誓い. 思い出してみましょう uses ~てみる ('try to') in volitional form for a suggestive 'let's try to.'