What you need-
Fabric or embroidery piece on fabric
Apply fabric glue to the back edge of your shelf (skip over the hardware for hanging it). Lay fabric piece over back of shelf and press into glue.
Cut out around the hardware and glue any parts that may fray. Glue fabric under hangers.
Allow glue to set a few minutes then trim excess fabric around edges.
My fabric was really prone to fraying and I wanted to make sure everything was extra secure so I took plain school white glue and ran a line around the edge (the same edge that you used your fabric glue on, but on top of the fabric this time). The white glue will seal the edges of the fabric and bleed through tot he shelf helping to secure any loose bits. Allow to dry, hang!
I put the heart over the capital since we live just north of there, but you could put the heart over your home town! Happy Stitching.