I have used coconut oil in place of butter in a cake. The cake was denser than if you used butter. The cake also had a bit of a coconut flavor. I used a bit of lemon and orange extract. Everyone loved the cake. I substituted the same amount of coconut oil as butter. Just use a high quality coconut oil. Best of luck!