There isn’t a jot or tittle in Catholic doctrine that tells people to vote for “gay marriage”. The people who do that are doing so as rebels from Catholicism.
Look at reality, not theory.
Ireland is a catholic nation, the church denomination that the voters belong to has all the money and influence, how did they use it?
The leadership of the catholic church made a decision of how to influence the vote, they did nothing.