We recommend you to be as transparent as possible with the visitors of your site and not to hide the affiliate links. However, it is still technically possible.
If you do not want your affiliate links to appear when your visitors overfly your content, several solutions are available to you:
- Setting up a referral on the affiliate link using scripts and third-party tools
- Using a WordPress plugin
- Put the affiliate link in a call-to-action button and apply a script to hide the flyover