How to install a drain cover in the shower for this opening in the floor?
You bought a tub drain cover, not a shower one.  I would just use silicone in a few places to secure it.  Do not wrap the silicone all the way around as it may hinder water from going down.