I would like the dashed and solid edges into the "Wife box" to enter the other way around to avoid intersections.
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\gtrset{
level 0/.style={level distance = 5mm},
dashed/.style={family edges={foreground={black,very thick,dashed},xshift=-1cm}}
}
\begin{tikzpicture}
\genealogytree[timeflow = right,box={height=5mm,width=25mm,halign=center}]{ %
child{
union[dashed]{
p[male,tikz={yshift=5mm}] { A.N.Other }
c[female,tikz={yshift=2mm}] { Out of wedlock }
}
g[female] { Wife }
p[male] { Husband}
c[male] { Child of marriage }
}
}
\end{tikzpicture}
\end{document}

unionandp. It would be better to change the title to something meaningful and put the question into the text (as I did in my edit) and add an image of your result. – dexteritas Jul 25 '23 at 15:23