Green poop 5 weeks old help!

Anna

Has anyone else had their babies poop all of a sudden turn green and kind of mucusy .... she used to feed off both sides for 20 minutes now changed to one side for a much shorter time. I keep putting her back on that side And her poops have all of a sudden got green and frothy before she was yellow and frothy....

She reallg fights me at the boob and arches her back and wants to feed but cries..though this sometimes doesn't happen.....

Is she sick? Is it something i am eating??